more update
This commit is contained in:
parent
c661527d07
commit
e8dd7243d7
|
|
@ -131,6 +131,16 @@ namespace BLE_Utils {
|
|||
|
||||
void sendToLoRa() {
|
||||
if (!shouldSendBLEtoLoRa) return;
|
||||
|
||||
if (!Config.acceptOwnFrameFromTNC && BLEToLoRaPacket.indexOf("::") == -1) {
|
||||
String sender = BLEToLoRaPacket.substring(0, BLEToLoRaPacket.indexOf(">"));
|
||||
if (sender == currentBeacon->callsign) {
|
||||
BLEToLoRaPacket = "";
|
||||
shouldSendBLEtoLoRa = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
logger.log(logging::LoggerLevel::LOGGER_LEVEL_DEBUG, "BLE Tx", "%s", BLEToLoRaPacket.c_str());
|
||||
displayShow("BLE Tx >>", "", BLEToLoRaPacket, 1000);
|
||||
LoRa_Utils::sendNewPacket(BLEToLoRaPacket);
|
||||
|
|
|
|||
Loading…
Reference in New Issue