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:
James Rich
2026-06-18 20:48:32 -05:00
committed by GitHub
parent 5dd9d57ca9
commit 20b64d4d99
2 changed files with 5 additions and 6 deletions

View File

@@ -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")
}
}

View File

@@ -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