Needs wifi when KissEnableTcpIp is true

pull/25/head
sh123 2021-10-21 13:10:40 +03:00
rodzic 60a4df9c2d
commit 89ef736c93
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -405,7 +405,7 @@ void Service::onRigPacket(void *packet, int packetLength)
#endif #endif
} }
if (config_.EnableKissExtensions) { if (config_.KissEnableExtensions) {
#ifdef USE_RADIOLIB #ifdef USE_RADIOLIB
sendSignalReportEvent(radio_->getRSSI(), radio_->getSNR()); sendSignalReportEvent(radio_->getRSSI(), radio_->getSNR());
#else #else
@ -588,7 +588,7 @@ void Service::onControlCommand(Cmd cmd, byte value)
void Service::onRadioControlCommand(const std::vector<byte> &rawCommand) { void Service::onRadioControlCommand(const std::vector<byte> &rawCommand) {
if (config_.EnableKissExtensions && rawCommand.size() == sizeof(SetHardware)) { if (config_.KissEnableExtensions && rawCommand.size() == sizeof(SetHardware)) {
const struct SetHardware * setHardware = reinterpret_cast<const struct SetHardware*>(rawCommand.data()); const struct SetHardware * setHardware = reinterpret_cast<const struct SetHardware*>(rawCommand.data());
config_.LoraFreq = be32toh(setHardware->freq); config_.LoraFreq = be32toh(setHardware->freq);

Wyświetl plik

@ -58,7 +58,7 @@ private:
inline bool needsAprsis() const { inline bool needsAprsis() const {
return !config_.IsClientMode && (config_.EnableRfToIs || config_.EnableIsToRf); return !config_.IsClientMode && (config_.EnableRfToIs || config_.EnableIsToRf);
} }
inline bool needsWifi() const { return needsAprsis(); } inline bool needsWifi() const { return needsAprsis() || config_.KissEnableTcpIp; }
inline bool needsBt() const { return config_.IsClientMode; } inline bool needsBt() const { return config_.IsClientMode; }
inline bool needsBeacon() const { return !config_.IsClientMode && config_.EnableBeacon; } inline bool needsBeacon() const { return !config_.IsClientMode && config_.EnableBeacon; }