Code cleaning

This commit is contained in:
Sébastien Vallée 2017-12-26 07:26:35 +01:00
parent 709706c2d1
commit 10204fb2c5

View File

@ -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();