when we init default, set use_preset to true (meshtastic/Meshtastic-device#1845)

pull/507/head
andrekir 2022-10-26 17:58:38 -03:00
rodzic 726e54786c
commit 9ad6dd137d
1 zmienionych plików z 7 dodań i 2 usunięć

Wyświetl plik

@ -29,8 +29,13 @@ data class Channel(
// The default channel that devices ship with
val default = Channel(
channelSettings { psk = ByteString.copyFrom(defaultPSK) },
// reference: NodeDB::installDefaultConfig
loRaConfig { txEnabled = true; modemPreset = ModemPreset.LONG_FAST; hopLimit = 3 }
// references: NodeDB::installDefaultConfig / Channels::initDefaultChannel
loRaConfig {
usePreset = true
modemPreset = ModemPreset.LONG_FAST
hopLimit = 3
txEnabled = true
}
)
}