diff --git a/app/src/main/java/com/geeksville/mesh/ui/components/config/PaxcounterConfigItemList.kt b/app/src/main/java/com/geeksville/mesh/ui/components/config/PaxcounterConfigItemList.kt index f0d7f3245..0124db93e 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/components/config/PaxcounterConfigItemList.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/components/config/PaxcounterConfigItemList.kt @@ -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,