From ef6188cd59bfdae1e2ea2fce14a7e925b88f9d8c Mon Sep 17 00:00:00 2001 From: Marek Bel Date: Wed, 22 Aug 2018 16:09:19 +0200 Subject: [PATCH] Hot fix PFW-505 Speed change after tuning (on USB). When encoder is rotated left and pushed immediately on status screen, after returning to status screen print speed jumps to 345%. This is caused by downcasting signed lcd_encoder to unsigned position and back to signed lcd_encoder. --- Firmware/menu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/menu.h b/Firmware/menu.h index 4dbf21ef..06c90103 100644 --- a/Firmware/menu.h +++ b/Firmware/menu.h @@ -14,7 +14,7 @@ typedef void (*menu_func_t)(void); typedef struct { menu_func_t menu; - uint8_t position; + int8_t position; } menu_record_t; extern menu_record_t menu_stack[MENU_DEPTH_MAX];