compile git version into firmware

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

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);