projects
/
esp-clock.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'main' of github.com:rvbglas/esp_clock
[esp-clock.git]
/
config.cpp
diff --git
a/config.cpp
b/config.cpp
index bb60f3ae4061511c10b5d407360982dfcead38b9..9c46b95c840b92d0edbadd57f676353ef84ccadd 100644
(file)
--- a/
config.cpp
+++ b/
config.cpp
@@
-489,7
+489,6
@@
void saveConfig(bool force) {
if (File f = LittleFS.open(F("/config.txt"),"w")) {
f.print(cfg);
f.close();
if (File f = LittleFS.open(F("/config.txt"),"w")) {
f.print(cfg);
f.close();
- Serial.print(cfg);
Serial.println(F("Конфигурация сохранена"));
cfg.resetTimestamp();
}
Serial.println(F("Конфигурация сохранена"));
cfg.resetTimestamp();
}
@@
-557,6
+556,7
@@
char* distConfig PROGMEM =
void reset() {
messageModal(F("Сбрасываю настройки"));
void reset() {
messageModal(F("Сбрасываю настройки"));
+ delay(2000);
if (File f = LittleFS.open(F("/config.txt"),"w")) {
f.print(distConfig);
f.close();
if (File f = LittleFS.open(F("/config.txt"),"w")) {
f.print(distConfig);
f.close();