Disable APRS-IS when WiFi is in AP mode

pull/25/head
sh123 2021-10-21 15:43:38 +03:00
rodzic 474613bbdc
commit db18b6ba08
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -58,9 +58,14 @@ private:
void processIncomingRawPacketAsServer(const byte *packet, int packetLength);
inline bool needsAprsis() const {
return !config_.IsClientMode && (config_.EnableRfToIs || config_.EnableIsToRf);
return !config_.IsClientMode // only in server mode
&& (config_.EnableRfToIs || config_.EnableIsToRf) // rx/tx igate enabled
&& !config_.WifiEnableAp; // wifi is NOT in AP mode
}
inline bool needsWifi() const {
return needsAprsis() // aprsis is needed
|| config_.KissEnableTcpIp; // or kiss over tcp ip is enabled
}
inline bool needsWifi() const { return needsAprsis() || config_.KissEnableTcpIp; }
inline bool needsBt() const { return config_.IsClientMode; }
inline bool needsBeacon() const { return !config_.IsClientMode && config_.EnableBeacon; }