summaryrefslogtreecommitdiff
path: root/Sprinter
diff options
context:
space:
mode:
Diffstat (limited to 'Sprinter')
-rw-r--r--Sprinter/fastio.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sprinter/fastio.h b/Sprinter/fastio.h
index 0ba2546..aa5ad0e 100644
--- a/Sprinter/fastio.h
+++ b/Sprinter/fastio.h
@@ -24,7 +24,7 @@
*/
/// Read a pin
-#define _READ(IO) (DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN))
+#define _READ(IO) ((bool)(DIO ## IO ## _RPORT & MASK(DIO ## IO ## _PIN)))
/// write to a pin
#define _WRITE(IO, v) do { if (v) {DIO ## IO ## _WPORT |= MASK(DIO ## IO ## _PIN); } else {DIO ## IO ## _WPORT &= ~MASK(DIO ## IO ## _PIN); }; } while (0)
/// toggle a pin