mirror of
https://git.aixiao.me/aixiao/Danger-alarm.git
synced 2025-07-29 19:13:39 +08:00
优化FreeRTOS
This commit is contained in:
@@ -21,6 +21,7 @@ static uint16_t ZE07CO(int ANSWER, int *ZE07_CO_DATA_IS_OK)
|
||||
static uint8_t _ANSWER[9] = { 0xFF, 0x01, 0x78, 0x41, 0x00, 0x00, 0x00, 0x00, 0x46 };
|
||||
uart_write_blocking(UART0, _ANSWER, 9);
|
||||
sleep_ms(100);
|
||||
|
||||
}
|
||||
|
||||
if (ANSWER == 2) {
|
||||
@@ -81,7 +82,7 @@ void CO(void *pvParameters)
|
||||
|
||||
//_printTaskStackHighWaterMark("CO");
|
||||
//watchdog_update(); // 喂狗
|
||||
vTaskDelay(pdMS_TO_TICKS(3000)); // 非阻塞延时
|
||||
vTaskDelay(pdMS_TO_TICKS(5000)); // 非阻塞延时
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user