printfTemperature 1f Humidity 1fn aht_temper aht_humi; if status != HI_ERR_SUCCESS printfGet data error!rn; hi_sleepAHT_SLEEP_50MS;中午代码注释
The code in question appears to be a snippet from a C program. It starts with a print statement that displays the temperature and humidity values with one decimal place.
After that, there is an if statement that checks the value of the "status" variable. If it is not equal to "HI_ERR_SUCCESS", it prints an error message saying "Get data error!".
Finally, the code calls the "hi_sleep" function with the argument "AHT_SLEEP_50MS". This function likely causes the program to pause execution for 50 milliseconds.
The comment at the end of the code suggests that the code is being commented out or temporarily disabled during the noon time.
原文地址: http://www.cveoy.top/t/topic/jaTx 著作权归作者所有。请勿转载和采集!