mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
5168e7f1bf
commit
ecf54a5177
1 changed files with 2 additions and 2 deletions
|
|
@ -873,11 +873,11 @@ class BLEManager: NSObject, CBPeripheralDelegate, MqttClientProxyManagerDelegate
|
|||
if !invalidVersion { upsertNodeInfoPacket(packet: decodedInfo.packet, context: context) }
|
||||
case .routingApp:
|
||||
if !invalidVersion {
|
||||
guard let connectedPeripheral = self.connectedPeripheral else {
|
||||
guard let peripheral = self.connectedPeripheral else {
|
||||
Logger.mesh.error("🕸️ connectedPeripheral is nil. Unable to determine connectedNodeNum for routingPacket.")
|
||||
return
|
||||
}
|
||||
routingPacket(packet: decodedInfo.packet, connectedNodeNum: connectedPeripheral.num, context: context)
|
||||
routingPacket(packet: decodedInfo.packet, connectedNodeNum: peripheral.num, context: context)
|
||||
}
|
||||
case .adminApp:
|
||||
adminAppPacket(packet: decodedInfo.packet, context: context)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue