1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-04 04:12:23 +01:00

Replace deprecated COLOR_BLACK constant (#2487)

This commit is contained in:
Dave T
2021-10-11 22:44:05 +01:00
committed by GitHub
parent ea56a39e11
commit 039fbc677d

View File

@@ -142,7 +142,7 @@ void ILI9341Display::fill(Color color) {
}
void ILI9341Display::fill_internal_(Color color) {
if (color.raw_32 == COLOR_BLACK.raw_32) {
if (color.raw_32 == Color::BLACK.raw_32) {
memset(transfer_buffer_, 0, sizeof(transfer_buffer_));
} else {
uint8_t *dst = transfer_buffer_;