Compare commits
No commits in common. "82d7ab5e6f9eb7cc648a975d26fe03774b61d568" and "f469f012f83e7987ec207242b679dd4a9275b27a" have entirely different histories.
82d7ab5e6f
...
f469f012f8
|
|
@ -16,10 +16,10 @@ namespace Proculite.GpioRest.Controllers
|
||||||
[HttpGet("pin-value/{pinNumber}")]
|
[HttpGet("pin-value/{pinNumber}")]
|
||||||
public IActionResult PinValue(int pinNumber)
|
public IActionResult PinValue(int pinNumber)
|
||||||
{
|
{
|
||||||
if (!ModelState.IsValid)
|
if(!ModelState.IsValid)
|
||||||
return BadRequest();
|
return BadRequest();
|
||||||
|
|
||||||
return Ok(_gpioService.CurrentPinValue(pinNumber).ToString());
|
return Ok(_gpioService.CurrentPinValue(pinNumber));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -40,7 +40,6 @@ namespace Proculite.GpioRest.Services
|
||||||
}
|
}
|
||||||
|
|
||||||
_gpioController.OpenPin(pin, pinMode, PinValue.Low);
|
_gpioController.OpenPin(pin, pinMode, PinValue.Low);
|
||||||
Thread.Sleep(200);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue