diff --git a/include/loraprs_service.h b/include/loraprs_service.h index 1463e36..f490c86 100644 --- a/include/loraprs_service.h +++ b/include/loraprs_service.h @@ -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 diff --git a/src/loraprs_service.cpp b/src/loraprs_service.cpp index f8c6c56..cb83d92 100644 --- a/src/loraprs_service.cpp +++ b/src/loraprs_service.cpp @@ -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_; }