optimizations
optimizations

file:a/func.lua -> file:b/func.lua
--- a/func.lua
+++ b/func.lua
@@ -26,8 +26,8 @@
 
 function lcdPrint(txt)
     if serialDebug then print(txt) end
-    disp:setColor(255, 0, 0);
-    disp:drawBox(0, 210, 320, 20);
+    disp:setColor(255, 0, 0)
+    disp:drawBox(0, 210, 320, 20)
     disp:setPrintPos(2, 225)
     disp:setColor(255, 255, 255);
     disp:setFont(ucg.font_7x13B_tr)
@@ -36,7 +36,7 @@
     tmr.stop(2)
     tmr.alarm(2, 10000, 1, function()
         disp:setColor(0, 0, 0);
-        disp:drawBox(0, 201, 320,30);
+        disp:drawBox(0, 205, 320, 25);
         tmr.stop(2)
     end)
 end

file:a/init.lua -> file:b/init.lua
--- a/init.lua
+++ b/init.lua
@@ -21,7 +21,7 @@
     disp:setRotate90()
 
     disp:setFont(ucg.font_helvB18_hr)
-    disp:setColor(255, 255, 255);
+    disp:setColor(255, 255, 255)
     disp:setPrintPos((disp:getWidth() - disp:getStrWidth(deviceTitle)) / 2, 25)
     disp:print(deviceTitle)
 
@@ -82,7 +82,7 @@
             function(err, str)
                 lcdPrint("enduser_setup: Err #" .. err .. ": " .. str)
             end
-        );
+        )
 
         tmr.alarm(0, 3000, 1, function()
             if wifi.sta.getip()==nil then

file:a/mqtt.lua -> file:b/mqtt.lua
--- a/mqtt.lua
+++ b/mqtt.lua
@@ -38,7 +38,7 @@
         end
 
         if topic == prefix .. "/device" then
-            lcdPrint('\tNew request from IoT Control Center: clientId="' .. json.clientId .. '"');
+            lcdPrint('\tNew request from IoT Control Center: clientId="' .. json.clientId .. '"')
             if json.time then
                 rtctime.set(json.time + timezoneHours * 60 * 60, 0)
                 update()

comments