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