From 0fa68aabadbf2648461506fc5da47cbb4bcd98da Mon Sep 17 00:00:00 2001 From: Ben Meadors Date: Fri, 30 Jan 2026 15:19:39 -0600 Subject: [PATCH] Refactor channel packet sending to use async/await pattern --- .../Accessory/Accessory Manager/AccessoryManager+ToRadio.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meshtastic/Accessory/Accessory Manager/AccessoryManager+ToRadio.swift b/Meshtastic/Accessory/Accessory Manager/AccessoryManager+ToRadio.swift index 731a2ac1..7261e97e 100644 --- a/Meshtastic/Accessory/Accessory Manager/AccessoryManager+ToRadio.swift +++ b/Meshtastic/Accessory/Accessory Manager/AccessoryManager+ToRadio.swift @@ -516,7 +516,7 @@ extension AccessoryManager { let logString = String.localizedStringWithFormat("Sent a Channel for: %@ Channel Index %d".localized, String(deviceNum), chan.index) try await send(toRadio, debugDescription: logString) - channelPacket(channel: chan, fromNum: self.activeDeviceNum ?? 0, context: context) + await MeshPackets.shared.channelPacket(channel: chan, fromNum: self.activeDeviceNum ?? 0) } if !addChannels { // Save the LoRa Config and the device will reboot