compile git version into firmware

This commit is contained in:
nick-4711 committed 2024-04-22 19:52:13 +07:00
1 parent 302bec9d37
commit 5275f5a810
3 files changed
+6 -3

No files matched your search

+2
View File
@@ -467,6 +467,8 @@ static void oneIndoorInit(void) {
/** Show boot display */
Serial.println("Firmware Version: " + ag->getVersion());
Serial.printf("Firmware version: %s\n", GIT_VERSION);
oledDisplay.setText("AirGradient ONE",
"FW Version: ", ag->getVersion().c_str());
delay(DISPLAY_DELAY_SHOW_CONTENT_MS);