MODSERIAL with support for more devices
Fork of MODSERIAL by
Diff: FLUSH.cpp
- Revision:
- 49:18f8dc534348
- Parent:
- 30:b04ce87dc424
diff -r 8b47b4b1e5e8 -r 18f8dc534348 FLUSH.cpp --- a/FLUSH.cpp Tue Jan 16 11:21:39 2018 +0100 +++ b/FLUSH.cpp Mon Jan 29 23:16:48 2018 +0100 @@ -32,6 +32,8 @@ switch(type) { case TxIrq: DISABLE_TX_IRQ; break; case RxIrq: DISABLE_RX_IRQ; break; + default: // Do nothing. + break; } buffer_in[type] = 0; buffer_out[type] = 0; @@ -40,6 +42,8 @@ switch(type) { case TxIrq: RESET_TX_FIFO; break; case RxIrq: RESET_RX_FIFO; break; + default: // Do nothing. + break; } MODSERIAL_IRQ_REG = irq_req; }