Sfoglia il codice sorgente

Fix fan speed encoder scaling (#15010)

Marcio Teixeira 5 anni fa
parent
commit
825c2c3dc4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      Marlin/src/lcd/menu/menu.h

+ 1
- 1
Marlin/src/lcd/menu/menu.h Vedi File

46
     static inline char* strfunc(const float value) { return STRFUNC((TYPE) value); } \
46
     static inline char* strfunc(const float value) { return STRFUNC((TYPE) value); } \
47
   };
47
   };
48
 
48
 
49
-DECLARE_MENU_EDIT_TYPE(uint8_t,  percent,     ui8tostr4pct,    1     );   // 100%       right-justified
49
+DECLARE_MENU_EDIT_TYPE(uint8_t,  percent,     ui8tostr4pct, 100.0/255);   // 100%       right-justified
50
 DECLARE_MENU_EDIT_TYPE(int16_t,  int3,        i16tostr3,       1     );   // 123, -12   right-justified
50
 DECLARE_MENU_EDIT_TYPE(int16_t,  int3,        i16tostr3,       1     );   // 123, -12   right-justified
51
 DECLARE_MENU_EDIT_TYPE(int16_t,  int4,        i16tostr4sign,   1     );   // 1234, -123 right-justified
51
 DECLARE_MENU_EDIT_TYPE(int16_t,  int4,        i16tostr4sign,   1     );   // 1234, -123 right-justified
52
 DECLARE_MENU_EDIT_TYPE(int8_t,   int8,        i8tostr3,        1     );   // 123, -12   right-justified
52
 DECLARE_MENU_EDIT_TYPE(int8_t,   int8,        i8tostr3,        1     );   // 123, -12   right-justified

Loading…
Annulla
Salva