Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit a7867cd

Browse files
committed
shorten some keys. nvs doesn't support keys longer than 15 chars.
battery.volt.min -> bat.volt.min battery.volt.max -> bat.volt.max battery.percent.empty -> bat.perc.empty
1 parent b45e4d1 commit a7867cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

esp32/modules/splash.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -474,11 +474,11 @@ def load_settings():
474474
#if (sleep_duration>120):
475475
# print("[SPLASH] Sleep duration set to more than 120 seconds. Forcing 120 seconds.")
476476
global battery_volt_min
477-
battery_volt_min = badge.nvs_get_u16('splash', 'battery.volt.min', 3700) # mV
477+
battery_volt_min = badge.nvs_get_u16('splash', 'bat.volt.min', 3700) # mV
478478
global battery_volt_max
479-
battery_volt_max = badge.nvs_get_u16('splash', 'battery.volt.max', 4200) # mV
479+
battery_volt_max = badge.nvs_get_u16('splash', 'bat.volt.max', 4200) # mV
480480
global battery_percent_empty
481-
battery_percent_empty = badge.nvs_get_u8('splash', 'battery.percent.empty', 1) # %
481+
battery_percent_empty = badge.nvs_get_u8('splash', 'bat.perc.empty', 1) # %
482482
global ntp_timeout
483483
ntp_timeout = badge.nvs_get_u8('splash', 'ntp.timeout', 40) #amount of tries
484484
global bpp_after_count

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