summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-07-12 11:01:48 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-07-12 11:01:48 +0200
commit7119fc49dfaa8586c4930a80d6d6041bc5b9fa33 (patch)
tree9e2642611fbb6b7a3e00609950c7b76e001420b1
parent303c462f5eb82a04a01046e2277db674692e106b (diff)
Fix MSP430FR5969LP GPIO warning
-rw-r--r--include/msp430fr5969lp/driver/gpio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/msp430fr5969lp/driver/gpio.h b/include/msp430fr5969lp/driver/gpio.h
index 6f0999c..caed74a 100644
--- a/include/msp430fr5969lp/driver/gpio.h
+++ b/include/msp430fr5969lp/driver/gpio.h
@@ -88,6 +88,7 @@ class GPIO {
} else if (pin < PIN_INVALID) {
return PJIN & (1 << (pin - pj_0));
}
+ return 0;
}
inline void write(unsigned char const pin, unsigned char value) {
if (pin < p2_0) {