mirror of
https://github.com/esphome/esphome.git
synced 2026-06-01 17:57:37 +08:00
[lcd_base] Fix millis() truncation to uint8_t (#14289)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -45,7 +45,7 @@ void LCDDisplay::setup() {
|
|||||||
// TODO dotsize
|
// TODO dotsize
|
||||||
|
|
||||||
// Commands can only be sent 40ms after boot-up, so let's wait if we're close
|
// Commands can only be sent 40ms after boot-up, so let's wait if we're close
|
||||||
const uint8_t now = millis();
|
const uint32_t now = millis();
|
||||||
if (now < 40)
|
if (now < 40)
|
||||||
delay(40u - now);
|
delay(40u - now);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user