mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-26 06:25:24 -04:00
fix(settings): gate Traffic Management config at firmware v2.8.0 (#5864)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -52,8 +52,8 @@ data class Capabilities(val firmwareVersion: String?, internal val forceEnableAl
|
||||
/** Support for Status Message module. Supported since firmware v2.8.0. */
|
||||
val supportsStatusMessage = atLeast(V2_8_0)
|
||||
|
||||
/** Support for Traffic Management module. Supported since firmware v3.0.0. */
|
||||
val supportsTrafficManagementConfig = atLeast(V3_0_0)
|
||||
/** Support for Traffic Management module. Supported since firmware v2.8.0. */
|
||||
val supportsTrafficManagementConfig = atLeast(V2_8_0)
|
||||
|
||||
/** Support for TAK (ATAK) module configuration. Supported since firmware v2.7.19. */
|
||||
val supportsTakConfig = atLeast(V2_7_19)
|
||||
@@ -79,7 +79,6 @@ data class Capabilities(val firmwareVersion: String?, internal val forceEnableAl
|
||||
private val V2_7_18 = DeviceVersion("2.7.18")
|
||||
private val V2_7_19 = DeviceVersion("2.7.19")
|
||||
private val V2_8_0 = DeviceVersion("2.8.0")
|
||||
private val V3_0_0 = DeviceVersion("3.0.0")
|
||||
private val UNRELEASED = DeviceVersion("9.9.9")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -74,9 +74,9 @@ class CapabilitiesTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
fun supportsTrafficManagementConfig_requires_V3_0_0() {
|
||||
assertFalse(caps("2.7.18").supportsTrafficManagementConfig)
|
||||
assertTrue(caps("3.0.0").supportsTrafficManagementConfig)
|
||||
fun supportsTrafficManagementConfig_requires_V2_8_0() {
|
||||
assertFalse(caps("2.7.21").supportsTrafficManagementConfig)
|
||||
assertTrue(caps("2.8.0").supportsTrafficManagementConfig)
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user