diff --git a/src/protocol/generate_protocol.py b/src/protocol/generate_protocol.py index 279c84e..afc4032 100644 --- a/src/protocol/generate_protocol.py +++ b/src/protocol/generate_protocol.py @@ -54,7 +54,7 @@ def get_type_size(type): return 4 elif type == 'int16' or type == 'uint16': return 2 - elif type == 'int8' or type == 'uint8' or type == 'bool': + elif type == 'int8' or type == 'uint8' or type == 'byte' or type == 'bool': return 1 elif type == 'string': return count diff --git a/src/protocol/protocol.hjson b/src/protocol/protocol.hjson index 31c68b4..52fd519 100644 --- a/src/protocol/protocol.hjson +++ b/src/protocol/protocol.hjson @@ -21,6 +21,7 @@ int16 : int16_t uint8 : uint8_t int8 : int8_t + byte : uint8_t bool : uint8_t } }