mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat(firmware): Implement USB DFU updates for supported devices (#3901)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
f322eb31a0
commit
499ed58311
13 changed files with 860 additions and 483 deletions
|
|
@ -27,6 +27,16 @@ interface RadioPrefs {
|
|||
var devAddr: String?
|
||||
}
|
||||
|
||||
fun RadioPrefs.isBle() = devAddr?.startsWith("x") == true
|
||||
|
||||
fun RadioPrefs.isSerial() = devAddr?.startsWith("s") == true
|
||||
|
||||
fun RadioPrefs.isMock() = devAddr?.startsWith("m") == true
|
||||
|
||||
fun RadioPrefs.isTcp() = devAddr?.startsWith("t") == true
|
||||
|
||||
fun RadioPrefs.isNoop() = devAddr?.startsWith("n") == true
|
||||
|
||||
@Singleton
|
||||
class RadioPrefsImpl @Inject constructor(@RadioSharedPreferences prefs: SharedPreferences) : RadioPrefs {
|
||||
override var devAddr: String? by NullableStringPrefDelegate(prefs, "devAddr2", null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue