From 3208b573078d1b08cbbdd8ba33449b154bbe6d1d Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 9 Sep 2023 23:09:48 +0800 Subject: [PATCH] update --- components/dwin/dwin_screen.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/dwin/dwin_screen.cpp b/components/dwin/dwin_screen.cpp index 00a7712..1cc28c2 100644 --- a/components/dwin/dwin_screen.cpp +++ b/components/dwin/dwin_screen.cpp @@ -77,7 +77,7 @@ uint16_t DwinScreen::alloc_from(const char* whichrammanager, uint16_t size) { } void DwinScreen::clearrxcache() { - CriticalContext cc; + // CriticalContext cc; txcontext.receipt_ready_flag = false; txcontext.receiptlen = 0; } @@ -98,7 +98,10 @@ bool DwinScreen::sendcmdblock(int overtime) { if (txcontext.receipt_ready_flag) { return true; } else { - zos_delay(1); + // zos_delay(1); + // HAL_Delay(1); + osDelay(1); + } } return false;