Statusupdate message change to current screen resolution #278 #279

This commit is contained in:
fvanroie 2022-01-12 00:40:45 +01:00
parent c5eda03b89
commit 394ba36c84

View File

@ -1175,7 +1175,7 @@ void dispatch_statusupdate(const char*, const char*, uint8_t source)
// #endif
snprintf_P(buffer, sizeof(buffer), PSTR("\"tftDriver\":\"%s\",\"tftWidth\":%u,\"tftHeight\":%u}"),
haspTft.get_tft_model(), (TFT_WIDTH), (TFT_HEIGHT));
haspTft.get_tft_model(), haspTft.width(), haspTft.height());
strcat(data, buffer);
}