feat(wire): migrate from protobuf -> wire (#4401)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich 2026-02-03 18:01:12 -06:00 committed by GitHub
parent 9dbc8b7fbf
commit 25657e8f8f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
239 changed files with 7149 additions and 6144 deletions

View file

@ -184,6 +184,7 @@ constructor(
FirmwareUpdateMethod.Usb
}
}
radioPrefs.isBle() -> FirmwareUpdateMethod.Ble
radioPrefs.isTcp() -> FirmwareUpdateMethod.Wifi
else -> FirmwareUpdateMethod.Unknown
@ -451,7 +452,7 @@ constructor(
private suspend fun checkBatteryLevel(): Boolean {
val node = nodeRepository.ourNodeInfo.value ?: return true
val level = node.batteryLevel
val level = node.batteryLevel ?: 1
val isBatteryLow = level in 1..MIN_BATTERY_LEVEL
if (isBatteryLow) {
@ -463,7 +464,7 @@ constructor(
private suspend fun getDeviceHardware(ourNode: MyNodeEntity): DeviceHardware? {
val nodeInfo = nodeRepository.ourNodeInfo.value
val hwModelInt = nodeInfo?.user?.hwModel?.number
val hwModelInt = nodeInfo?.user?.hw_model?.value
val target = ourNode.pioEnv
return if (hwModelInt != null) {