aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/wirish.h
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/wirish.h')
-rw-r--r--wirish/wirish.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wirish/wirish.h b/wirish/wirish.h
index c1c46cb..311c74f 100644
--- a/wirish/wirish.h
+++ b/wirish/wirish.h
@@ -62,8 +62,8 @@ extern "C"{
#define LSBFIRST 0
#define MSBFIRST 1
-#define lowByte(w) ((w) & 0xff)
-#define highByte(w) ((w) >> 8)
+#define lowByte(w) ((w) & 0xFF)
+#define highByte(w) (((w) >> 8) & 0xFF)
#define bitRead(value, bit) (((value) >> (bit)) & 0x01)
#define bitSet(value, bit) ((value) |= (1UL << (bit)))
#define bitClear(value, bit) ((value) &= ~(1UL << (bit)))