Code cleaning
This commit is contained in:
parent
709706c2d1
commit
10204fb2c5
@ -84,6 +84,7 @@ void setup() {
|
|||||||
#ifndef DEBUG_WifiM
|
#ifndef DEBUG_WifiM
|
||||||
wifiManager.setDebugOutput(false); // no debug
|
wifiManager.setDebugOutput(false); // no debug
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
wifiManager.setTimeout(180);
|
wifiManager.setTimeout(180);
|
||||||
wifiManager.setAPCallback(configModeCallback);
|
wifiManager.setAPCallback(configModeCallback);
|
||||||
if(!wifiManager.autoConnect("LibreMetric")) {
|
if(!wifiManager.autoConnect("LibreMetric")) {
|
||||||
@ -128,7 +129,6 @@ void loop() {
|
|||||||
matrix.fillScreen(LOW);
|
matrix.fillScreen(LOW);
|
||||||
time_t now = time(nullptr);
|
time_t now = time(nullptr);
|
||||||
String time = String(ctime(&now));
|
String time = String(ctime(&now));
|
||||||
//Serial.println(time);
|
|
||||||
time.trim();
|
time.trim();
|
||||||
time.substring(11,19).toCharArray(time_value, 10);
|
time.substring(11,19).toCharArray(time_value, 10);
|
||||||
int seconds = time.substring(17,19).toInt();
|
int seconds = time.substring(17,19).toInt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user