Skip to content

Commit

Permalink
restore missing lev_but and lcd_value
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 7, 2022
1 parent 80ab8eb commit 1c3ef80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Marlin/src/lcd/extui/dgus/mks/DGUSScreenHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ void DGUSScreenHandlerMKS::Level_Ctrl(DGUS_VP_Variable &var, void *val_ptr) {
#if ENABLED(MESH_BED_LEVELING)
auto cs = getCurrentScreen();
#endif
const uint16_t lev_but = BE16_P(val_ptr);
switch (lev_but) {
case 0:
#if ENABLED(AUTO_BED_LEVELING_BILINEAR)
Expand Down Expand Up @@ -589,6 +590,7 @@ void DGUSScreenHandlerMKS::SD_FileBack(DGUS_VP_Variable&, void*) {

void DGUSScreenHandlerMKS::LCD_BLK_Adjust(DGUS_VP_Variable &var, void *val_ptr) {

const uint16_t lcd_value = BE16_P(val_ptr);
lcd_default_light = constrain(lcd_value, 10, 100);

const uint16_t lcd_data[2] = { lcd_default_light, lcd_default_light };
Expand Down

0 comments on commit 1c3ef80

Please sign in to comment.