kopia lustrzana https://github.com/sh123/esp32_loraprs
Disable APRS-IS when WiFi is in AP mode
rodzic
474613bbdc
commit
db18b6ba08
|
@ -58,9 +58,14 @@ private:
|
||||||
void processIncomingRawPacketAsServer(const byte *packet, int packetLength);
|
void processIncomingRawPacketAsServer(const byte *packet, int packetLength);
|
||||||
|
|
||||||
inline bool needsAprsis() const {
|
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 needsBt() const { return config_.IsClientMode; }
|
||||||
inline bool needsBeacon() const { return !config_.IsClientMode && config_.EnableBeacon; }
|
inline bool needsBeacon() const { return !config_.IsClientMode && config_.EnableBeacon; }
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue