Nuvoton / Mbed OS NuMaker-mbed-Sensor-MAX31875

Dependencies:   MAX31875_Temperature_Sensor_Low_Power

Files at this revision

API Documentation at this revision

Comitter:
cyliang
Date:
Mon Mar 06 10:29:36 2023 +0000
Parent:
0:c40fe84a8d1f
Child:
2:01a2b08b4621
Commit message:
Change wait function and config for printing float @OS v6.17.0

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Apr 16 11:56:19 2019 +0000
+++ b/main.cpp	Mon Mar 06 10:29:36 2023 +0000
@@ -35,7 +35,7 @@
         /* It should wait at least 1/8 seconds for next read */
         //wait(MAX31875_WAIT_CONV_RATE_8);   
         /* But to slow print out rate, wait 1 second here */
-        wait(1);
+        ThisThread::sleep_for(1000ms);  // wait(1);
 
         f_temperature = temp_sensor.read_reg_as_temperature(MAX31875_REG_TEMPERATURE);
         printf("Temperature is %3.4f Celsius, %3.4f Fahrenheit\r\n",
--- a/mbed-os.lib	Tue Apr 16 11:56:19 2019 +0000
+++ b/mbed-os.lib	Mon Mar 06 10:29:36 2023 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-os/#0063e5de32fc575f061244c96ac60c41c07bd2e6
+https://github.com/ARMmbed/mbed-os/#17dc3dc2e6e2817a8bd3df62f38583319f0e4fed
\ No newline at end of file
--- a/mbed_app.json	Tue Apr 16 11:56:19 2019 +0000
+++ b/mbed_app.json	Mon Mar 06 10:29:36 2023 +0000
@@ -2,7 +2,8 @@
     "target_overrides": {
         "*": {
             "platform.stdio-baud-rate"          : 115200,
-            "platform.stdio-convert-newlines"   : true
+            "platform.stdio-convert-newlines"   : true,
+            "platform.minimal-printf-enable-floating-point" : true
         }
     }
 }