Refactor channel packet sending to use async/await pattern

This commit is contained in:
Ben Meadors 2026-01-30 15:19:39 -06:00
parent 4c370e5bee
commit 0fa68aabad

View file

@ -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