MODSERIAL with support for more devices

Fork of MODSERIAL by Erik -

Files at this revision

API Documentation at this revision

Comitter:
Tejas Kale
Date:
Mon Jan 29 23:16:48 2018 +0100
Parent:
48:8b47b4b1e5e8
Commit message:
Fix Compiler warnings

Changed in this revision

FLUSH.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;
 }