fix appliesCh of preferred path in rfnm_source

This commit is contained in:
AlexandreRouma 2024-07-18 16:53:02 +02:00
parent f1c7010437
commit 123e34d250

View File

@ -188,6 +188,7 @@ private:
// Set this channel as the channel of its prefered path (cursed af but lazy) // Set this channel as the channel of its prefered path (cursed af but lazy)
const PathConfig& pc = paths.value(paths.valueId(preferred_pc)); const PathConfig& pc = paths.value(paths.valueId(preferred_pc));
((PathConfig*)&pc)->chId = offset + i; ((PathConfig*)&pc)->chId = offset + i;
((PathConfig*)&pc)->appliesCh = (uint16_t)(1 << (offset + i + 8));
} }
// Dump antenna paths // Dump antenna paths