diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-04-25 15:10:43 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-04-25 15:10:43 +0200 |
commit | 42b3b8abd73d0f38efd607fc9dfcf768341549a1 (patch) | |
tree | c867039a66e90e3f740c7b6084701ac266cd1218 /main/main.cpp | |
parent | 0ef1ae11846bfcbbd63e22d1dfecf579f4069c80 (diff) |
freertos works
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/main.cpp b/main/main.cpp index d118de2..8b3504c 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -12,9 +12,9 @@ const unsigned int LED_PIN = CYW43_WL_GPIO_LED_PIN; void blink_task() { while (true) { cyw43_arch_gpio_put(LED_PIN, 0); - sleep_ms(250); + vTaskDelay(250 / portTICK_PERIOD_MS); cyw43_arch_gpio_put(LED_PIN, 1); - sleep_ms(250); + vTaskDelay(250 / portTICK_PERIOD_MS); } } |