summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c')
-rw-r--r--2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
index d40263f2..a5f80e5d 100644
--- a/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
+++ b/2.3-1/src/c/hardware/rasberrypi/gpio/u8RPIDigitalOuts.c
@@ -19,8 +19,10 @@
/*pin is reduced by one as array index starts from 0 and pin no starts from 1*/
uint8 u8RPIDigitalOuts(uint8 pin, uint8 state)
{
- if (state == 0) //low output
+ if (state == 0) /*low output*/
digitalWrite(phy_pin[pin-1], LOW);
- if (state == 1) //high output
+ if (state == 1) /*high output*/
digitalWrite(phy_pin[pin-1], HIGH);
+
+ return 0;
}