feat: calculate default values for LoRa channel_num and frequency (#664)

This commit is contained in:
Andre K 2023-07-18 22:28:16 -03:00 committed by GitHub
parent f27ae8feba
commit 527d94d32a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 141 additions and 29 deletions

View file

@ -8,7 +8,7 @@ class ChannelSetTest {
/** make sure we match the python and device code behavior */
@Test
fun matchPython() {
val url = Uri.parse("https://meshtastic.org/e/#CgMSAQESAA")
val url = Uri.parse("https://meshtastic.org/e/#CgMSAQESBggBQANIAQ")
val cs = ChannelSet(url)
Assert.assertEquals("LongFast", cs.primaryChannel!!.name)
Assert.assertEquals("#LongFast-I", cs.primaryChannel!!.humanName)