make style helped revealing my bug :)

This commit is contained in:
Philippe Teuwen 2019-04-02 22:34:00 +02:00
parent 64ce30c06c
commit 07cc0d0a29

View file

@ -1559,12 +1559,13 @@ void __attribute__((noreturn)) AppMain(void) {
// Check if there is a usb packet available // Check if there is a usb packet available
if (usb_poll_validate_length()) { if (usb_poll_validate_length()) {
if (usb_read(rx, sizeof(rx))) if (usb_read(rx, sizeof(rx))) {
#ifdef WITH_FPC_HOST #ifdef WITH_FPC_HOST
reply_via_fpc = 0; reply_via_fpc = 0;
#endif #endif
UsbPacketReceived(rx, sizeof(rx)); UsbPacketReceived(rx, sizeof(rx));
} }
}
#ifdef WITH_FPC_HOST #ifdef WITH_FPC_HOST
// Check if there is a FPC packet available // Check if there is a FPC packet available
if (usart_readcommand(rx) > 0) { if (usart_readcommand(rx) > 0) {