mirror of
https://github.com/esphome/esphome.git
synced 2026-09-04 03:56:04 +00: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:
co-authored by
Copilot
parent
62da60df47
commit
e601162cdd
@@ -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