detect os and lsb release
This commit is contained in:
12
src/main.c
12
src/main.c
@@ -53,14 +53,14 @@ void main(void)
|
||||
smg_display(temp_buf,4);
|
||||
|
||||
// 串口打印
|
||||
if(pre_temp_value != temp_value){
|
||||
pre_temp_value = temp_value;
|
||||
printf("temp = %.1f\n", temp_value/10.0);
|
||||
}
|
||||
// if(pre_temp_value != temp_value){
|
||||
// pre_temp_value = temp_value;
|
||||
// printf("temp = %.1f\n", temp_value/10.0);
|
||||
// }
|
||||
|
||||
// delay
|
||||
// delay_ms(10);
|
||||
// printf("temp = %.1f\n", temp_value/10.0);
|
||||
delay_ms(1000);
|
||||
printf("temp = %.1f\r\n", temp_value/10.0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user