Returning high or low string from pin-value endpoint.
This commit is contained in:
parent
f469f012f8
commit
97dc1dbaa7
|
|
@ -19,7 +19,7 @@ namespace Proculite.GpioRest.Controllers
|
||||||
if (!ModelState.IsValid)
|
if (!ModelState.IsValid)
|
||||||
return BadRequest();
|
return BadRequest();
|
||||||
|
|
||||||
return Ok(_gpioService.CurrentPinValue(pinNumber));
|
return Ok(_gpioService.CurrentPinValue(pinNumber).ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue