Fixed serial passthrough exit when pulling USB cable

This commit is contained in:
Raphael Coeffic
2021-11-21 11:18:35 +01:00
committed by Raphael Coeffic
parent aa7b0143bd
commit 01059da849
2 changed files with 23 additions and 28 deletions
+2 -1
View File
@@ -317,7 +317,8 @@ enum ChannelsProtocols {
inline void stopPulses()
{
s_pulses_paused = true;
moduleState[0].protocol = PROTOCOL_CHANNELS_UNINITIALIZED;
for (uint8_t i = 0; i < NUM_MODULES; i++)
moduleState[i].protocol = PROTOCOL_CHANNELS_UNINITIALIZED;
}
inline bool pulsesStarted()