summaryrefslogtreecommitdiff
path: root/shared/serial_parse.h
diff options
context:
space:
mode:
Diffstat (limited to 'shared/serial_parse.h')
-rw-r--r--shared/serial_parse.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/shared/serial_parse.h b/shared/serial_parse.h
index 03c420f..0816ea1 100644
--- a/shared/serial_parse.h
+++ b/shared/serial_parse.h
@@ -4,7 +4,14 @@
#include <stdint.h>
+#include "bool.h"
#include "protocol.h"
-/** parse serial data byte by byte */
-void w2_serial_parse(uint8_t byte);
+#define W2_SERIAL_READ_SUCCESS true
+#define W2_SERIAL_READ_FAILURE false
+
+/**
+ * parse serial data byte by byte
+ * @return true if read success, false if read fails
+ */
+bool w2_serial_parse(uint8_t byte);