added timezone to bootlog

http-comm
Ondřej Hruška 7 years ago
parent 82fd9e5ad1
commit ac56b1dc61
  1. 1
      CMakeLists.txt
  2. 1
      Makefile
  3. 2
      user/user_main.c

@ -163,6 +163,7 @@ add_definitions(
-DGIT_HASH="blabla" -DGIT_HASH="blabla"
-DDEBUG_HEAP=1 -DDEBUG_HEAP=1
-DDEBUG_MALLOC=1 -DDEBUG_MALLOC=1
-D__TIMEZONE__="UTC"
-DESPFS_HEATSHRINK) -DESPFS_HEATSHRINK)
add_executable(ESPTerm ${SOURCE_FILES}) add_executable(ESPTerm ${SOURCE_FILES})

@ -70,6 +70,7 @@ CFLAGS = -Os -std=gnu99 -Werror -Wpointer-arith -Wundef -Wall -Wl,-EL -fno-inli
CFLAGS += -DGIT_HASH_BACKEND='"$(shell git rev-parse --short HEAD)"' CFLAGS += -DGIT_HASH_BACKEND='"$(shell git rev-parse --short HEAD)"'
CFLAGS += -DGIT_HASH_FRONTEND='"$(shell cd front-end && git rev-parse --short HEAD)"' CFLAGS += -DGIT_HASH_FRONTEND='"$(shell cd front-end && git rev-parse --short HEAD)"'
CFLAGS += -DADMIN_PASSWORD=$(ADMIN_PASSWORD) CFLAGS += -DADMIN_PASSWORD=$(ADMIN_PASSWORD)
CFLAGS += -D__TIMEZONE__='"$(shell date +%Z)"'
ifdef GLOBAL_CFLAGS ifdef GLOBAL_CFLAGS
CFLAGS += $(GLOBAL_CFLAGS) CFLAGS += $(GLOBAL_CFLAGS)

@ -99,7 +99,7 @@ void ICACHE_FLASH_ATTR user_init(void)
banner_info("Firmware (c) Ondrej Hruska, 2017"); banner_info("Firmware (c) Ondrej Hruska, 2017");
banner_info(TERMINAL_GITHUB_REPO); banner_info(TERMINAL_GITHUB_REPO);
banner_info(""); banner_info("");
banner_info("Version "FIRMWARE_VERSION", built " __DATE__ " at " __TIME__); banner_info("Version "FIRMWARE_VERSION", built " __DATE__ " at " __TIME__ " " __TIMEZONE__);
printf("\r\n"); printf("\r\n");
ioInit(); ioInit();

Loading…
Cancel
Save