diff --git a/src/main.cpp b/src/main.cpp index fe5b97a..28319bc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -30,7 +30,9 @@ void main(void) { - printf("Libre Solar Charge Controller: %s\n", CONFIG_BOARD); + printf("Hardware: Libre Solar %s (%s)\n", + DT_PROP(DT_PATH(pcb), type), DT_PROP(DT_PATH(pcb), version_str)); + printf("Firmware: %s\n", FIRMWARE_VERSION_ID); task_wdt_init(device_get_binding(DT_LABEL(DT_NODELABEL(iwdg)))); diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 513fd3a..eb1c465 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -22,6 +22,6 @@ if(GIT_FOUND) OUTPUT_VARIABLE FIRMWARE_VERSION_ID OUTPUT_STRIP_TRAILING_WHITESPACE) else() - set(FIRMWARE_VERSION_ID "") + set(FIRMWARE_VERSION_ID "unknown") endif() add_definitions(-DFIRMWARE_VERSION_ID="${FIRMWARE_VERSION_ID}")