fix(afhds2): add missing txCompleted to prevent crash on NV14 (#7301)

Co-authored-by: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Raphael Coeffic
2026-04-20 09:38:45 +10:00
committed by GitHub
co-authored by raphaelcoeffic Claude Opus 4.6
parent ccc4fefd89
commit 5e2ebb6ef5
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -95,4 +95,5 @@ const etx_proto_driver_t Afhds2InternalDriver = {
.processData = afhds2ProcessData,
.processFrame = nullptr,
.onConfigChange = nullptr,
.txCompleted = modulePortSerialTxCompleted,
};
+1 -1
View File
@@ -565,7 +565,7 @@ void pulsesSendNextFrame(uint8_t module)
}
// if previous frame not completed, skip this one
if (!drv->txCompleted(ctx)) return;
if (drv->txCompleted && !drv->txCompleted(ctx)) return;
uint8_t channelStart = g_model.moduleData[module].channelsStart;
int16_t* channels = &channelOutputs[channelStart];