mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00: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:
parent
e2328adca2
commit
c2d6871b6b
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue