Skip to content

Commit f59b735

Browse files
committed
esp32/mphalport: Replace portTICK_RATE_MS with portTICK_PERIOD_MS.
portTICK_RATE_MS is obsolete and only provided by FreeRTOS for backwards compatibility.
1 parent df98a5c commit f59b735

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

esp32/mphalport.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,11 @@ uint32_t mp_hal_ticks_us(void) {
8686
}
8787

8888
void mp_hal_delay_ms(uint32_t ms) {
89-
vTaskDelay(ms / portTICK_RATE_MS);
89+
vTaskDelay(ms / portTICK_PERIOD_MS);
9090
}
9191

9292
void mp_hal_delay_us(uint32_t us) {
93-
vTaskDelay(us / 1000 / portTICK_RATE_MS);
93+
vTaskDelay(us / 1000 / portTICK_PERIOD_MS);
9494
}
9595

9696
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy