Skip to content

Commit 3f30d4b

Browse files
ellenspoponyx
authored andcommitted
🐛 Fix large edit value to encoder conversion (MarlinFirmware#25812)
1 parent f00f792 commit 3f30d4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Marlin/src/lcd/menu/menu.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void MenuEditItemBase::goto_edit_screen(
138138
void * const ev, // Edit value pointer
139139
const int32_t minv, // Encoder minimum
140140
const int32_t maxv, // Encoder maximum
141-
const uint16_t ep, // Initial encoder value
141+
const uint32_t ep, // Initial encoder value
142142
const screenFunc_t cs, // MenuItem_type::draw_edit_screen => MenuEditItemBase::edit()
143143
const screenFunc_t cb, // Callback after edit
144144
const bool le // Flag to call cb() during editing

Marlin/src/lcd/menu/menu.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class MenuEditItemBase : public MenuItemBase {
168168
void * const ev, // Edit value pointer
169169
const int32_t minv, // Encoder minimum
170170
const int32_t maxv, // Encoder maximum
171-
const uint16_t ep, // Initial encoder value
171+
const uint32_t ep, // Initial encoder value
172172
const screenFunc_t cs, // MenuItem_type::draw_edit_screen => MenuEditItemBase::edit()
173173
const screenFunc_t cb, // Callback after edit
174174
const bool le // Flag to call cb() during editing

0 commit comments

Comments
 (0)