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.
This commit is contained in:
Marek Bel 2018-08-22 16:09:19 +02:00
parent 9fe27c108d
commit ef6188cd59

View File

@ -14,7 +14,7 @@ typedef void (*menu_func_t)(void);
typedef struct typedef struct
{ {
menu_func_t menu; menu_func_t menu;
uint8_t position; int8_t position;
} menu_record_t; } menu_record_t;
extern menu_record_t menu_stack[MENU_DEPTH_MAX]; extern menu_record_t menu_stack[MENU_DEPTH_MAX];