From f49da44b2f64042c28ecba7e4e6c7f8bf361187e Mon Sep 17 00:00:00 2001 From: "DESKTOP-B25GA9E\\W35" <1733709035@qq.com> Date: Wed, 20 Sep 2023 16:21:20 +0800 Subject: [PATCH] fixed handled bugs --- OLED_SSD1306.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/OLED_SSD1306.lua b/OLED_SSD1306.lua index 3db82ff..ffcbe80 100644 --- a/OLED_SSD1306.lua +++ b/OLED_SSD1306.lua @@ -32,16 +32,6 @@ function PageLoading(progress) Disp:updateDisplay(); end -function PageMainScene(wifiName,ipAddress,version) - Screen_WIFINAME = wifiName; - Screen_IPADDRESS = ipAddress; - Screen_VERSION = version; - Disp:clearBuffer(); - DrawMainScene(Screen_WIFINAME,Screen_IPADDRESS,Screen_VERSION) - Disp:updateDisplay(); - --Disp:sendBuffer(); -end - function DrawMainScene(wifiName,ipAddress,version) --Disp:setFont(u8g2.font_unifont_t_symbols); Disp:setFont(u8g2.font_unifont_t_symbols); @@ -65,6 +55,16 @@ function DrawLight(lightArr) end end +function PageMainScene(wifiName,ipAddress,version) + Screen_WIFINAME = wifiName; + Screen_IPADDRESS = ipAddress; + Screen_VERSION = version; + Disp:clearBuffer(); + DrawMainScene(Screen_WIFINAME,Screen_IPADDRESS,Screen_VERSION) + Disp:updateDisplay(); + --Disp:sendBuffer(); +end + function PageLight(lightArr) Disp:clearBuffer(); DrawMainScene(Screen_WIFINAME,Screen_IPADDRESS,Screen_VERSION);