diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-05-26 14:09:41 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-05-26 14:09:41 +0200 |
commit | 2a88cf72a211746f4da582850dc5d65ea7bfd4dc (patch) | |
tree | 7810d060c6790f05717fa8ed52e6b7b8099a4760 /shared/protocol.h | |
parent | d70f4f44f927281d6c9bfff64264bd754d682dc8 (diff) |
typedef enums
Diffstat (limited to 'shared/protocol.h')
-rw-r--r-- | shared/protocol.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/protocol.h b/shared/protocol.h index 5bdfcbe..875bb16 100644 --- a/shared/protocol.h +++ b/shared/protocol.h @@ -16,7 +16,7 @@ #define W2_CMD_DIRECTION_MASK (1) #define W2_CMD_COUNT 28 -enum w2_e_scmds { +typedef enum { /** ping command */ W2_CMD_PING = 0x00, /** exception command */ @@ -45,7 +45,7 @@ enum w2_e_scmds { W2_CMD_PLAY = 0x18, /** control leds command */ W2_CMD_CLED = 0x1a, -}; +} w2_e_scmds; #pragma pack(push, 1) |