DECS @UNIST / Mbed 2 deprecated Anybaro_ver_7

Dependencies:   mbed

Revision:
13:5601fedf0e12
Parent:
12:75fb40f38c19
Child:
14:d059d99e9b5e
--- a/main.cpp	Tue Jul 02 21:57:47 2019 +0000
+++ b/main.cpp	Wed Jul 03 08:32:41 2019 +0000
@@ -199,13 +199,17 @@
 }
 //---------------------- testing ------------- 190703 BH
 InterruptIn         nFault(PB_15);               // Motor Driver DRV
+bool nFaultFlag = true;
 void nFaultHigh(){
-    pc.puts("nFault HIGH\r\n");
-    bt.puts("nFault HIGH\r\n");
+    nFaultFlag = true;
+//    pc.puts("nFault HIGH\r\n");
+//    bt.puts("nFault HIGH\r\n");
 }
+
 void nFaultLow(){
-    pc.puts("nFault LOW\r\n");
-    bt.puts("nFault LOW\r\n");
+    nFaultFlag = false;
+//    pc.puts("nFault LOW\r\n");
+//    bt.puts("nFault LOW\r\n");
 }
 //---------------------- end ------------- 190703 BH
 int main()
@@ -246,6 +250,12 @@
     while(1)
     {
      
+    //---------------------- testing ------------- 190703 BH
+     
+    //        if (1 == flagRx)
+     
+    //---------------------- end ------------- 190703 BH
+     
         if (1 == flagRx)
         {