Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of MODSERIAL by
Revision 49:18f8dc534348, committed 2018-01-29
- 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;
 }
    