diff options
Diffstat (limited to 'shared/protocol.h')
-rw-r--r-- | shared/protocol.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/shared/protocol.h b/shared/protocol.h index b997ec6..7aa5e9f 100644 --- a/shared/protocol.h +++ b/shared/protocol.h @@ -1,12 +1,15 @@ #pragma once -#include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include "bin.h" #include "consts.h" +typedef uint8_t bool; +#define false 0 /* NOLINT */ +#define true 1 /* NOLINT */ + #define W2_SERIAL_START_BYTE 0xff #define W2_CMDDIR_RX 0 @@ -71,7 +74,7 @@ typedef struct { /** motor output struct */ typedef struct { - int speed; + int16_t speed; } w2_s_o_motor; /** underside led output struct */ |