소스 검색

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.
Marek Bel 6 년 전
부모
커밋
ef6188cd59
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Firmware/menu.h

+ 1 - 1
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];