Israel Hernández Orozco / Mbed 2 deprecated 7_2

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
hdzoisrael
Date:
Wed Nov 28 03:48:15 2018 +0000
Parent:
0:327a4132f8aa
Commit message:
m

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon Oct 29 18:31:42 2018 +0000
+++ b/main.cpp	Wed Nov 28 03:48:15 2018 +0000
@@ -10,12 +10,12 @@
 
 void dispara1() {
     if(Estado>-1){
-        Estado=Estado-0.1;
+        Estado=Estado-0.1f;
     }
 }
 void dispara2() {
     if(Estado<1){
-        Estado=Estado+0.1;
+        Estado=Estado+0.1f;
     }
 }