Skip to content

Commit 053d438

Browse files
committed
v0.9.512
1 parent 2afe475 commit 053d438

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,9 @@ Work is in progress...
234234

235235
---
236236
## Version history
237+
### 0.9.512
238+
- fixed bug with saving ntp server #1 value
239+
237240
### 0.9.511
238241
In this version, the contents of the data/www directory have changed, so that the first time you flash it, you will be greeted by WEB Board Uploader. Just upload all the files from data/www (11 pcs) to it
239242
or -> **!!! a [full update](#update-over-web-interface) with Sketch data upload is required. After updating please press CTRL+F5 in browser !!!**

yoRadio/src/core/netserver.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -582,13 +582,13 @@ void NetServer::onWsMessage(void *arg, uint8_t *data, size_t len, uint8_t client
582582
return;
583583
}
584584
if (strcmp(cmd, "sntp1") == 0) {
585-
strlcpy(config.store.sntp1, val, 35);
585+
//strlcpy(config.store.sntp1, val, 35);
586586
bool tzdone = false;
587-
if (strlen(config.store.sntp1) > 0 && strlen(config.store.sntp2) > 0) {
588-
configTime(config.store.tzHour * 3600 + config.store.tzMin * 60, config.getTimezoneOffset(), config.store.sntp1, config.store.sntp2);
587+
if (strlen(val) > 0 && strlen(config.store.sntp2) > 0) {
588+
configTime(config.store.tzHour * 3600 + config.store.tzMin * 60, config.getTimezoneOffset(), val, config.store.sntp2);
589589
tzdone = true;
590-
} else if (strlen(config.store.sntp1) > 0) {
591-
configTime(config.store.tzHour * 3600 + config.store.tzMin * 60, config.getTimezoneOffset(), config.store.sntp1);
590+
} else if (strlen(val) > 0) {
591+
configTime(config.store.tzHour * 3600 + config.store.tzMin * 60, config.getTimezoneOffset(), val);
592592
tzdone = true;
593593
}
594594
if (tzdone) {

yoRadio/src/core/options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef options_h
22
#define options_h
33

4-
#define YOVERSION "0.9.511"
4+
#define YOVERSION "0.9.512"
55

66
/*******************************************************
77
DO NOT EDIT THIS FILE.

0 commit comments

Comments
 (0)