mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat(wire): migrate from protobuf -> wire (#4401)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
9dbc8b7fbf
commit
25657e8f8f
239 changed files with 7149 additions and 6144 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue