mirror of https://github.com/arendst/Tasmota.git
Revert "Fix universal display slow response"
This reverts commit 98a5bc95a9
.
This commit is contained in:
parent
98a5bc95a9
commit
a448f538aa
|
@ -533,20 +533,11 @@ int8_t replacepin(char **cp, int16_t pin) {
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************************************/
|
|
||||||
|
|
||||||
#ifdef USE_DISPLAY_MODES1TO5
|
#ifdef USE_DISPLAY_MODES1TO5
|
||||||
|
|
||||||
void UDISP_PrintLog(void) {
|
void UDISP_PrintLog(void) {
|
||||||
// This can take over 3 seconds depending on renderer->Updateframe() speed
|
disp_refresh--;
|
||||||
// due to not connected busy pin (configure as MISO)
|
if (!disp_refresh) {
|
||||||
static bool printlog_mutex = false;
|
|
||||||
|
|
||||||
if (disp_refresh) { disp_refresh--; }
|
|
||||||
if (disp_refresh || printlog_mutex || TasmotaGlobal.restart_flag || TasmotaGlobal.ota_state_flag) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
printlog_mutex = true;
|
|
||||||
disp_refresh = Settings->display_refresh;
|
disp_refresh = Settings->display_refresh;
|
||||||
if (!disp_screen_buffer_cols) { DisplayAllocScreenBuffer(); }
|
if (!disp_screen_buffer_cols) { DisplayAllocScreenBuffer(); }
|
||||||
|
|
||||||
|
@ -566,7 +557,7 @@ void UDISP_PrintLog(void) {
|
||||||
renderer->println(disp_screen_buffer[last_row]);
|
renderer->println(disp_screen_buffer[last_row]);
|
||||||
renderer->Updateframe();
|
renderer->Updateframe();
|
||||||
}
|
}
|
||||||
printlog_mutex = false;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void UDISP_Time(void) {
|
void UDISP_Time(void) {
|
||||||
|
|
Loading…
Reference in New Issue