Max Scordamaglia / Mbed 2 deprecated Nucleo_AsyncSerialIO

Dependencies:   mbed BufferedSerial AserialIOFuncLib SSD1306 TerminalPlusV2

Fork of SerialIO by Max Scordamaglia

Revision:
21:a867c9454f21
Parent:
20:fc0a3050c5d1
Child:
22:96199b7addb9
diff -r fc0a3050c5d1 -r a867c9454f21 Functions.h
--- a/Functions.h	Tue Aug 18 21:55:23 2015 +0000
+++ b/Functions.h	Wed Aug 19 23:45:39 2015 +0000
@@ -38,12 +38,12 @@
             if (param=="on ") {
                 realExtraSerial=true;
                 sc.writeScreen("ON \n",62,14,3);
-                                errp=0;
+                errp=0;
             }
             if (param=="off") {
                 realExtraSerial=false;
                 sc.writeScreen("OFF\n",62,14);
-                                errp=0;
+                errp=0;
             }
         }
     }
@@ -56,7 +56,7 @@
                 sc.writeScreen("Led ACCESO \n",42,20,99);
                 ardser.printf("\nLed ACCESO \n\r");
                 printDisp(dispType,"Led ACCESO \n\r");
-                led.onOff(true); //Accende il led
+                led.onOff(1); //Accende il led
                 errp=0;
             }
             if (param=="off") {
@@ -64,7 +64,7 @@
                 sc.writeScreen("Led SPENTO! \n",42,20,99);
                 ardser.printf("\nLed SPENTO! \n\r");
                 printDisp(dispType,"Led SPENTO \n\r");
-                led.onOff(false); //Spegne il led
+                led.onOff(0); //Spegne il led
                 errp=0;
             }
         }