kopia lustrzana https://github.com/sh123/esp32_loraprs
Version logging
rodzic
9349cd9fc1
commit
5f4b5a7ddb
|
@ -35,7 +35,7 @@ public:
|
||||||
void loop();
|
void loop();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void printConfig();
|
void printConfig() const;
|
||||||
|
|
||||||
void setupWifi(const String &wifiName, const String &wifiKey);
|
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);
|
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();
|
bool reconnectAprsis();
|
||||||
void attachKissNetworkClient();
|
void attachKissNetworkClient();
|
||||||
|
|
||||||
bool isRigRxBusy();
|
bool isRigRxBusy() const;
|
||||||
void onRigTaskRxPacket();
|
void onRigTaskRxPacket();
|
||||||
void onRigTaskTxPacket();
|
void onRigTaskTxPacket();
|
||||||
static void rigTask(void *self);
|
static void rigTask(void *self);
|
||||||
|
@ -119,7 +119,7 @@ private:
|
||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const String CfgLoraprsVersion = "LoRAPRS 1.0.9";
|
const String CfgLoraprsVersion = "LoRAPRS 1.0.10";
|
||||||
|
|
||||||
// processor config
|
// processor config
|
||||||
const int CfgConnRetryMs = 500; // connection retry delay, e.g. wifi
|
const int CfgConnRetryMs = 500; // connection retry delay, e.g. wifi
|
||||||
|
|
|
@ -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("Current mode:", config_.IsClientMode ? "NORMAL" : "APRS-IS iGate");
|
||||||
LOG_INFO(disableKiss_ ? "Using TNC2 text mode" : "Using TNC KISS and AX.25 mode");
|
LOG_INFO(disableKiss_ ? "Using TNC2 text mode" : "Using TNC KISS and AX.25 mode");
|
||||||
LOG_INFO("UsbSerialEnable:", config_.UsbSerialEnable ? "yes" : "no");
|
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_;
|
return config_.LoraUseCad && rigIsRxActive_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue