Conversor ADC to RS232

Dependencies:   mbed

Revision:
1:8d0067d6d183
Parent:
0:a942d6b61747
--- a/main.cpp	Mon Sep 16 13:34:51 2019 +0000
+++ b/main.cpp	Mon Sep 16 14:55:00 2019 +0000
@@ -9,7 +9,7 @@
     while(1){
         valor_adc = lm35;
         temperatura= (valor_adc*3300/10);
-        rs232.printf("1.2f \n\r",temperatura);
+        rs232.printf("%1.2f \n\r",temperatura);
         wait(0.2);
 
     }