diff --git a/src/LoRa_APRS_Tracker.cpp b/src/LoRa_APRS_Tracker.cpp index e495207..f352849 100644 --- a/src/LoRa_APRS_Tracker.cpp +++ b/src/LoRa_APRS_Tracker.cpp @@ -22,7 +22,6 @@ #include "SPIFFS.h" #include "utils.h" -#define VERSION "2023.07.12" Configuration Config; PowerManagement powerManagement; @@ -31,6 +30,7 @@ TinyGPSPlus gps; NimBLECharacteristic* pCharacteristic; OneButton userButton = OneButton(BUTTON_PIN, true, true); +String versionDate = "2023.07.12"; int myBeaconsIndex = 0; int myBeaconsSize = Config.beacons.size(); Beacon *currentBeacon = &Config.beacons[myBeaconsIndex]; @@ -71,10 +71,10 @@ void setup() { delay(500); setup_display(); - show_display(" LoRa APRS", "", " Richonguzman", " -- CD2RXU --", "", " " VERSION, 4000); + show_display(" LoRa APRS", "", " Richonguzman", " -- CD2RXU --", "", " " + versionDate, 4000); logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "RichonGuzman -> CD2RXU --> LoRa APRS Tracker/Station"); - logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "Version: " VERSION); - + logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "Version: %s", versionDate); + Config.validateConfigFile(currentBeacon->callsign); MSG_Utils::loadNumMessages(); diff --git a/src/utils.cpp b/src/utils.cpp index 8399020..63029de 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -10,6 +10,7 @@ extern bool displayEcoMode; extern uint32_t displayTime; extern bool displayState; extern int menuDisplay; +extern String versionDate; namespace utils { @@ -50,7 +51,7 @@ void startingStatus() { if (Config.path != "") { packet += "," + Config.path; } - packet += ":>https://github.com/richonguzman/LoRa_APRS_Tracker"; + packet += ":>https://github.com/richonguzman/LoRa_APRS_Tracker " + versionDate; LoRa_Utils::sendNewPacket(packet); statusState = false; }