Merge pull request #393 from meshtastic/refactor-protos

remove is_router
This commit is contained in:
Andre Kirchhoff 2022-03-15 22:56:19 -03:00 committed by GitHub
commit fdc43dd712
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,6 @@ class UIViewModel @Inject constructor(
radioConfig.value?.preferences?.let {
if (it.positionBroadcastSecs > 0) return it.positionBroadcastSecs
// These default values are borrowed from the device code.
if (it.isRouter) return 60 * 60
return 15 * 60
}
return null