From 50cf3199857b9c0f7139e66ec4095400be6a05f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Boh=C3=A1=C4=8Dek?= Date: Sun, 27 Jun 2021 14:18:58 +0200 Subject: [PATCH] refactor: commands size and count types --- lib-pheripherals/include/input.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib-pheripherals/include/input.h b/lib-pheripherals/include/input.h index 6b75278..ad3d5ae 100644 --- a/lib-pheripherals/include/input.h +++ b/lib-pheripherals/include/input.h @@ -43,8 +43,8 @@ typedef struct { typedef struct { command_t *commands; - uint8_t count; - uint8_t size; + uint16_t count; + uint16_t size; rotation_encoders_t encoders; } commands_t; @@ -96,4 +96,8 @@ bool commands_unregister(commands_t *commands, command_t *command); */ short commands_check_input(commands_t *commands); +uint16_t commands_save_state(commands_t *commands); + +bool commands_restore_state(commands_t *commands, uint16_t state); + #endif // __INPUT_H__ -- 2.48.1