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

This commit is contained in:
andrekir 2022-10-26 17:58:38 -03:00
parent 726e54786c
commit 9ad6dd137d

View file

@ -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
}
)
}