RudolphRiedel
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
Marlin/src/lcd/extui/lib/ftdi_eve_touch_ui/screens/interface_settings_screen.cpp
|
|
@ -158,6 +158,8 @@ void InterfaceSettingsScreen::onIdle() { |
|
|
|
switch (cmd.track_tag(value)) { |
|
|
|
case 2: |
|
|
|
screen_data.InterfaceSettingsScreen.brightness = float(value) * 128 / 0xFFFF; |
|
|
|
if (screen_data.InterfaceSettingsScreen.brightness > 1) |
|
|
|
screen_data.InterfaceSettingsScreen.brightness = 1; |
|
|
|
CLCD::set_brightness(screen_data.InterfaceSettingsScreen.brightness); |
|
|
|
SaveSettingsDialogBox::settingsChanged(); |
|
|
|
break; |
|
|
|