NuMaker Thermo-Sensor MAX31875

Dependencies:   MAX31875_Temperature_Sensor_Low_Power

Revision:
1:bc3ce35be52a
Parent:
0:c40fe84a8d1f
Child:
2:01a2b08b4621
--- 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",