mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor: recommended and required firmware updates (#2012)
This commit is contained in:
parent
868d705b2d
commit
38982bc37b
8 changed files with 57 additions and 7 deletions
|
|
@ -80,6 +80,12 @@ fun FirmwareReleaseEntity.asDeviceVersion(): DeviceVersion {
|
|||
)
|
||||
}
|
||||
|
||||
fun FirmwareRelease.asDeviceVersion(): DeviceVersion {
|
||||
return DeviceVersion(
|
||||
id.substringBeforeLast(".").replace("v", "")
|
||||
)
|
||||
}
|
||||
|
||||
enum class FirmwareReleaseType {
|
||||
STABLE,
|
||||
ALPHA
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue