Kevin Braun / Mbed 2 deprecated KL25Z_MLX90620

Dependencies:   MLX9062x PrintBuffer mbed

Revision:
1:9d7894633924
Parent:
0:6f472b9627c7
Child:
2:1f1157f04539
--- a/main.cpp	Mon Jul 29 23:58:54 2013 +0000
+++ b/main.cpp	Thu Aug 01 18:37:35 2013 +0000
@@ -96,9 +96,11 @@
     } else if((inchar == CR) || (inchar == LF)) { 
         pcRxLine = true;
         if(LocalEcho) pc.printf("\n");
-    } else if(inchar == ticC) {
-        pc.printf("\n\n*** Control C detected, Resetting ***\n");
-        mbed_reset();
+
+// no s/w reset in the KL25Z mbed.
+//    } else if(inchar == ticC) {
+//        pc.printf("\n\n*** Control C detected, Resetting ***\n");
+//        mbed_reset();
     } else if((inchar == 'C') || (inchar == 'c')) { 
         TempC = inchar;
     } else if((inchar == 'F') || (inchar == 'f')) { 
@@ -115,6 +117,8 @@
         } else {
             pc.printf ("\n*** pcRxBuffer is full!!\n");
             pcRxEOB = true;
+            pcRxQty = 0;
+            pcRxBuffer[pcRxQty] = 0;
         }
     }
     
@@ -590,7 +594,9 @@
         pc.printf("*** MLX90620 non operational!!!\n");
     }
     ShowTempsColor();
-    pc.printf("At any time, type:\n O = Pointing Outward\n I = Pointing Inward\n C = Temp Degrees C\n F = Temp Degrees F\n^C = reboot\n\n");
+    //no s/w reset on KL25Z mbed
+    //pc.printf("At any time, type:\n O = Pointing Outward\n I = Pointing Inward\n C = Temp Degrees C\n F = Temp Degrees F\n^C = reboot\n\n");
+    pc.printf("At any time, type:\n O = Pointing Outward\n I = Pointing Inward\n C = Temp Degrees C\n F = Temp Degrees F\n\n");
     pc.printf("Ready...\n");
     pc.printf("\n\n\n\n\n\n\n");