Properly set the receiver id before fetching settings

This commit is contained in:
Raphael Coeffic
2021-11-10 08:22:54 +01:00
parent 26756a6a0b
commit f6789866c2
+1 -1
View File
@@ -660,7 +660,7 @@ void RxOptions::checkEvents()
case RO_Init:
// kickstart fetching RX settings
memclear(&hwSettings, sizeof(hwSettings));
//hwSettings.receiverSettings.receiverId = receiverIdx;
hwSettings.receiverSettings.receiverId = receiverIdx;
moduleState[moduleIdx].readModuleInformation(
&hwSettings.modules[moduleIdx], receiverIdx, receiverIdx);
state = RO_ReadModuleInfo;