Update to support ESP-IDF v5 in develop branch

This commit is contained in:
Rashed Talukder 2022-03-08 15:24:22 -08:00
parent 7c6bdc5635
commit 44342b653f
13 changed files with 55 additions and 46 deletions

View file

@ -176,7 +176,7 @@ void hx8357_init(void)
}
}
if (x & 0x80) { // If high bit set...
vTaskDelay(numArgs * 5 / portTICK_RATE_MS); // numArgs is actually a delay time (5ms units)
vTaskDelay(numArgs * pdMS_TO_TICKS(5)); // numArgs is actually a delay time (5ms units)
}
}
@ -278,8 +278,8 @@ static void hx8357_reset(void)
{
#if HX8357_USE_RST
gpio_set_level(HX8357_RST, 0);
vTaskDelay(10 / portTICK_RATE_MS);
vTaskDelay(pdMS_TO_TICKS(10));
gpio_set_level(HX8357_RST, 1);
vTaskDelay(120 / portTICK_RATE_MS);
vTaskDelaypdMS_TO_TICKS(120);
#endif
}