Force inactive output between pulse trains

This commit is contained in:
Raphael Coeffic
2022-03-20 16:30:59 +01:00
parent d2685aeadf
commit 3057652b40
8 changed files with 143 additions and 59 deletions
+2 -2
View File
@@ -92,9 +92,9 @@ inline int getChannelValue(uint8_t port, int channel)
static void sbusFlush()
{
if (extmodulePulsesData.dsm2.index & 1)
*extmodulePulsesData.dsm2.ptr++ = 60000;
*extmodulePulsesData.dsm2.ptr++ = 255;
else
*(extmodulePulsesData.dsm2.ptr - 1) = 60000;
*(extmodulePulsesData.dsm2.ptr - 1) = 255;
}
void setupPulsesSbus()