mirror of
https://github.com/ratspeak/ratdeck.git
synced 2026-04-17 22:45:41 +00:00
v1.4.0: LVGL UI, async radio TX, live TCP management, input fixes
- Migrate all screens to LVGL v8.4 widget system - Non-blocking radio TX (async endPacket via LoRaInterface) - Live TCP server switching with transient node cleanup - Fix UI freeze during radio transmit - Trackball long-press delete, deferred click with debounce - Pin microReticulum to 392363c, fix list_directory API - Fix CI build: portable include path, remove hardcoded local path
This commit is contained in:
@@ -46,7 +46,10 @@ bool UserConfig::parseJson(const String& json) {
|
||||
|
||||
_settings.screenDimTimeout = doc["screen_dim"] | 30;
|
||||
_settings.screenOffTimeout = doc["screen_off"] | 60;
|
||||
_settings.brightness = doc["brightness"] | 255;
|
||||
// Brightness: stored as 1-100%. Migrate old 0-255 values.
|
||||
int rawBri = doc["brightness"] | 100;
|
||||
if (rawBri > 100) rawBri = rawBri * 100 / 255; // Migrate from PWM to percentage
|
||||
_settings.brightness = constrain(rawBri, 1, 100);
|
||||
_settings.denseFontMode = doc["dense_font"] | false;
|
||||
_settings.trackballSpeed = doc["trackball_speed"] | 3;
|
||||
_settings.touchSensitivity = doc["touch_sens"] | 3;
|
||||
|
||||
Reference in New Issue
Block a user