kopia lustrzana https://github.com/sh123/esp32_loraprs
Needs wifi when KissEnableTcpIp is true
rodzic
60a4df9c2d
commit
89ef736c93
|
@ -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);
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue