use new lora.use_preset bool (#1868)

This commit is contained in:
Thomas Göttgens 2022-10-28 02:15:16 +02:00 committed by GitHub
parent 548b0d0b53
commit 8a4341fec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -218,7 +218,7 @@ const char *Channels::getName(size_t chIndex)
// Per mesh.proto spec, if bandwidth is specified we must ignore modemPreset enum, we assume that in that case
// the app fucked up and forgot to set channelSettings.name
if (config.lora.bandwidth != 0)
if (config.lora.use_preset)
channelName = "Custom";
else
switch (config.lora.modem_preset) {