forked from airgradienthq/arduino
Init timezone on boot
This commit is contained in:
@ -135,6 +135,10 @@ void setup() {
|
|||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
delay(100); /** For bester show log */
|
delay(100); /** For bester show log */
|
||||||
|
|
||||||
|
// Set timezone to UTC
|
||||||
|
setenv("TZ", "UTC-0", 1);
|
||||||
|
tzset();
|
||||||
|
|
||||||
/** Print device ID into log */
|
/** Print device ID into log */
|
||||||
Serial.println("Serial nr: " + ag->deviceId());
|
Serial.println("Serial nr: " + ag->deviceId());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user