fix(caps): Correct firmware version for canMuteNode (#4341)

Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
James Rich
2026-01-27 16:22:28 -06:00
committed by GitHub
parent e2328adca2
commit c2d6871b6b
2 changed files with 3 additions and 3 deletions

View File

@@ -34,7 +34,7 @@ data class Capabilities(val firmwareVersion: String?, internal val forceEnableAl
* Note: This is currently not available in firmware but defined here for future support.
*/
val canMuteNode: Boolean
get() = isSupported("2.8.0")
get() = isSupported("2.7.18")
/** Ability to request neighbor information from other nodes. Supported since firmware v2.7.15. */
val canRequestNeighborInfo: Boolean

View File

@@ -25,9 +25,9 @@ class CapabilitiesTest {
private fun caps(version: String?) = Capabilities(version, forceEnableAll = false)
@Test
fun `canMuteNode requires v2 8 0`() {
fun `canMuteNode requires v2 7 18`() {
assertFalse(caps("2.7.15").canMuteNode)
assertFalse(caps("2.7.99").canMuteNode)
assertTrue(caps("2.7.18").canMuteNode)
assertTrue(caps("2.8.0").canMuteNode)
assertTrue(caps("2.8.1").canMuteNode)
}