diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-26 19:17:33 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-26 19:17:33 +0200 |
commit | 266fd5ef0c45315fc0bf281a15630a9b4765e68c (patch) | |
tree | a34a86d72e25e3c858577feaff7f61c81b026c61 /shared/protocol.h | |
parent | e75c48a4d79a838844aab071c81b2879aab2b5ee (diff) |
implement SENS command0.2.0
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 */ |