mirror of
https://github.com/correl/m5paper.git
synced 2024-11-24 03:00:10 +00:00
Set timezone on startup
This commit is contained in:
parent
0b25d08d66
commit
2afceed781
1 changed files with 4 additions and 0 deletions
|
@ -209,6 +209,10 @@ App::Choices current_app;
|
|||
void setup(void) {
|
||||
auto cfg = M5.config();
|
||||
M5.begin(cfg);
|
||||
|
||||
setenv("TZ", NTP_TIMEZONE, 1);
|
||||
tzset();
|
||||
|
||||
M5.Display.init();
|
||||
M5.Display.setTextSize(3);
|
||||
M5.Display.setCursor(0, M5.Display.height() / 4);
|
||||
|
|
Loading…
Reference in a new issue