Skip to content

Commit 4d43b9b

Browse files
committed
Make keys shorter
1 parent 8734dc7 commit 4d43b9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

esp32/modules/splash.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -475,19 +475,19 @@ def load_settings():
475475
#if (sleep_duration>120):
476476
# print("[SPLASH] Sleep duration set to more than 120 seconds. Forcing 120 seconds.")
477477
global battery_volt_min
478-
battery_volt_min = badge.nvs_get_u16('splash', 'battery.volt.min', 3700) # mV
478+
battery_volt_min = badge.nvs_get_u16('splash', 'batt.vmin', 3700) # mV
479479
global battery_volt_max
480-
battery_volt_max = badge.nvs_get_u16('splash', 'battery.volt.max', 4200) # mV
480+
battery_volt_max = badge.nvs_get_u16('splash', 'batt.vmax', 4200) # mV
481481
global battery_percent_empty
482-
battery_percent_empty = badge.nvs_get_u8('splash', 'battery.percent.empty', 1) # %
482+
battery_percent_empty = badge.nvs_get_u8('splash', 'batt.pempty', 1) # %
483483
global ntp_timeout
484484
ntp_timeout = badge.nvs_get_u8('splash', 'ntp.timeout', 40) #amount of tries
485485
global bpp_after_count
486486
bpp_after_count = badge.nvs_get_u8('splash', 'bpp.count', 5)
487487
global splash_timer_interval
488-
splash_timer_interval = badge.nvs_get_u16('splash', 'timer.interval', 200)
488+
splash_timer_interval = badge.nvs_get_u16('splash', 'tmr.interval', 200)
489489
global timer_loop_amount
490-
timer_loop_amount = badge.nvs_get_u8('splash', 'timer.amount', 25)
490+
timer_loop_amount = badge.nvs_get_u8('splash', 'tmr.amount', 25)
491491
global loopCnt
492492
loopCnt = timer_loop_amount
493493

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy