mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
Removed unnecessary variable DataMQTT.
This commit is contained in:
parent
b099a2ecf8
commit
e9158a44fd
|
|
@ -33,10 +33,9 @@ bool RouterTask::loop(System &system) {
|
|||
// do routing
|
||||
if (!_fromModem.empty()) {
|
||||
std::shared_ptr<APRSMessage> modemMsg = _fromModem.getElement();
|
||||
std::shared_ptr<APRSMessage> DataMQTT = modemMsg;
|
||||
|
||||
if (system.getUserConfig()->mqtt.active) {
|
||||
_toMQTT.addElement(DataMQTT);
|
||||
_toMQTT.addElement(modemMsg);
|
||||
}
|
||||
|
||||
if (system.getUserConfig()->aprs_is.active && modemMsg->getSource() != system.getUserConfig()->callsign) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue