mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: add paxcounter threshold configs
This commit is contained in:
parent
46c0dbd1a5
commit
5b64f9eaa5
1 changed files with 20 additions and 0 deletions
|
|
@ -53,6 +53,26 @@ fun PaxcounterConfigItemList(
|
|||
})
|
||||
}
|
||||
|
||||
item {
|
||||
EditTextPreference(title = "WiFi RSSI threshold (defaults to -80)",
|
||||
value = paxcounterInput.wifiThreshold,
|
||||
enabled = enabled,
|
||||
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||
onValueChanged = {
|
||||
paxcounterInput = paxcounterInput.copy { wifiThreshold = it }
|
||||
})
|
||||
}
|
||||
|
||||
item {
|
||||
EditTextPreference(title = "BLE RSSI threshold (defaults to -80)",
|
||||
value = paxcounterInput.bleThreshold,
|
||||
enabled = enabled,
|
||||
keyboardActions = KeyboardActions(onDone = { focusManager.clearFocus() }),
|
||||
onValueChanged = {
|
||||
paxcounterInput = paxcounterInput.copy { bleThreshold = it }
|
||||
})
|
||||
}
|
||||
|
||||
item {
|
||||
PreferenceFooter(
|
||||
enabled = paxcounterInput != paxcounterConfig,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue