mirror of
https://github.com/esphome/esphome.git
synced 2026-02-28 09:54:19 -07: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
|
||||
|
||||
// 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)
|
||||
delay(40u - now);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user