fix(radio): race condition on pulse buffer (#6634)

This commit is contained in:
Raphael Coeffic
2025-10-14 20:42:41 +10:00
committed by GitHub
parent 2cbd995f35
commit dd029bc591
22 changed files with 73 additions and 6 deletions
+3
View File
@@ -551,6 +551,9 @@ void pulsesSendNextFrame(uint8_t module)
state.settings_updated = 0;
}
// if previous frame not completed, skip this one
if (!drv->txCompleted(ctx)) return;
uint8_t channelStart = g_model.moduleData[module].channelsStart;
int16_t* channels = &channelOutputs[channelStart];
uint8_t nChannels = 16; // TODO: MAX_CHANNELS - channelsStart