Skip to content

Commit

Permalink
Fix frequency limit editing (MarlinFirmware#17763)
Browse files Browse the repository at this point in the history
  • Loading branch information
studiodyne authored and Alexander Yasnogor committed Aug 7, 2020
1 parent d9de656 commit 2c70b37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/lcd/menu/menu_advanced.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ void menu_cancelobject();

#ifdef XY_FREQUENCY_LIMIT
EDIT_ITEM(int8, MSG_XY_FREQUENCY_LIMIT, &planner.xy_freq_limit_hz, 0, 100, planner.refresh_frequency_limit, true);
editable.uint8 = uint8_t(LROUND(planner.xy_freq_min_speed_factor * 255 * 100)); // percent to u8
editable.uint8 = uint8_t(LROUND(planner.xy_freq_min_speed_factor * 255)); // percent to u8
EDIT_ITEM(percent, MSG_XY_FREQUENCY_FEEDRATE, &editable.uint8, 3, 255, []{ planner.set_min_speed_factor_u8(editable.uint8); }, true);
#endif

Expand Down

0 comments on commit 2c70b37

Please sign in to comment.