kopia lustrzana https://github.com/meshtastic/Meshtastic-Android
feat: add new proto configs
rodzic
7e73c51711
commit
10099dc2fa
|
@ -100,6 +100,14 @@ fun PowerConfigItemList(
|
||||||
onValueChanged = { powerInput = powerInput.copy { minWakeSecs = it } })
|
onValueChanged = { powerInput = powerInput.copy { minWakeSecs = it } })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
item {
|
||||||
|
EditTextPreference(title = "Battery INA_2XX I2C address",
|
||||||
|
value = powerInput.deviceBatteryInaAddress,
|
||||||
|
enabled = enabled,
|
||||||
|
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||||
|
onValueChanged = { powerInput = powerInput.copy { deviceBatteryInaAddress = it } })
|
||||||
|
}
|
||||||
|
|
||||||
item {
|
item {
|
||||||
PreferenceFooter(
|
PreferenceFooter(
|
||||||
enabled = powerInput != powerConfig,
|
enabled = powerInput != powerConfig,
|
||||||
|
|
|
@ -97,6 +97,16 @@ fun SerialConfigItemList(
|
||||||
}
|
}
|
||||||
item { Divider() }
|
item { Divider() }
|
||||||
|
|
||||||
|
item {
|
||||||
|
SwitchPreference(title = "Override console serial port",
|
||||||
|
checked = serialInput.overrideConsoleSerialPort,
|
||||||
|
enabled = enabled,
|
||||||
|
onCheckedChange = {
|
||||||
|
serialInput = serialInput.copy { overrideConsoleSerialPort = it }
|
||||||
|
})
|
||||||
|
}
|
||||||
|
item { Divider() }
|
||||||
|
|
||||||
item {
|
item {
|
||||||
PreferenceFooter(
|
PreferenceFooter(
|
||||||
enabled = serialInput != serialConfig,
|
enabled = serialInput != serialConfig,
|
||||||
|
|
Ładowanie…
Reference in New Issue