mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-02-07 06:12:56 -05:00
fix(caps): Correct firmware version for canMuteNode (#4341)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user