Fix pollExtPXX2()

This commit is contained in:
Raphael Coeffic
2021-11-21 11:18:35 +01:00
committed by Raphael Coeffic
parent 5bbc055f3e
commit 9c50255905
+3 -3
View File
@@ -136,13 +136,13 @@ static void pollIntPXX2()
} }
#endif #endif
#if defined(PXX2) #if defined(PXX2) && defined(EXTMODULE_USART)
static void pollExtPXX2() static void pollExtPXX2()
{ {
uint8_t frame[PXX2_FRAME_MAXLENGTH]; uint8_t frame[PXX2_FRAME_MAXLENGTH];
while (intmoduleFifo.getFrame(frame)) { while (extmoduleFifo.getFrame(frame)) {
processPXX2Frame(INTERNAL_MODULE, frame); processPXX2Frame(EXTERNAL_MODULE, frame);
} }
} }
#endif #endif