Version logging

master
sh123 2022-12-22 21:39:43 +02:00
rodzic 9349cd9fc1
commit 5f4b5a7ddb
2 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -35,7 +35,7 @@ public:
void loop();
private:
void printConfig();
void printConfig() const;
void setupWifi(const String &wifiName, const String &wifiKey);
void setupRig(long freq, long bw, int sf, int cr, int pwr, int sync, int crcBytes, bool isExplicit);
@ -46,7 +46,7 @@ private:
bool reconnectAprsis();
void attachKissNetworkClient();
bool isRigRxBusy();
bool isRigRxBusy() const;
void onRigTaskRxPacket();
void onRigTaskTxPacket();
static void rigTask(void *self);
@ -119,7 +119,7 @@ private:
} __attribute__((packed));
private:
const String CfgLoraprsVersion = "LoRAPRS 1.0.9";
const String CfgLoraprsVersion = "LoRAPRS 1.0.10";
// processor config
const int CfgConnRetryMs = 500; // connection retry delay, e.g. wifi

Wyświetl plik

@ -98,7 +98,8 @@ void Service::setup(const Config &conf)
}
}
void Service::printConfig() {
void Service::printConfig() const {
LOG_INFO("Version:", CfgLoraprsVersion);
LOG_INFO("Current mode:", config_.IsClientMode ? "NORMAL" : "APRS-IS iGate");
LOG_INFO(disableKiss_ ? "Using TNC2 text mode" : "Using TNC KISS and AX.25 mode");
LOG_INFO("UsbSerialEnable:", config_.UsbSerialEnable ? "yes" : "no");
@ -317,7 +318,7 @@ void Service::loop()
}
}
bool Service::isRigRxBusy() {
bool Service::isRigRxBusy() const {
return config_.LoraUseCad && rigIsRxActive_;
}