From ae055a7d99214f812ef7369fcd84ff5441fd174f Mon Sep 17 00:00:00 2001 From: Mikayla Fischler Date: Sat, 19 Apr 2025 00:21:15 -0400 Subject: [PATCH] luacheck fixes and version increment --- pocket/startup.lua | 4 ++-- scada-common/crash.lua | 2 +- scada-common/util.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pocket/startup.lua b/pocket/startup.lua index bf2416d..c1d55ef 100644 --- a/pocket/startup.lua +++ b/pocket/startup.lua @@ -2,10 +2,10 @@ -- SCADA System Access on a Pocket Computer -- ----@diagnostic disable-next-line: undefined-global, lowercase-global +---@diagnostic disable-next-line: lowercase-global pocket = pocket or periphemu -- luacheck: ignore pocket -local _is_pocket_env = pocket +local _is_pocket_env = pocket -- luacheck: ignore pocket require("/initenv").init_env() diff --git a/scada-common/crash.lua b/scada-common/crash.lua index 0b56626..71256e1 100644 --- a/scada-common/crash.lua +++ b/scada-common/crash.lua @@ -124,7 +124,7 @@ end -- final error print on failed xpcall, app exits here function crash.exit() local handled, run = false, true - local display = nil ---@type DisplayBox + local display ---@type DisplayBox -- special graphical crash screen if has_graphics then diff --git a/scada-common/util.lua b/scada-common/util.lua index a4c7d4e..bdedb04 100644 --- a/scada-common/util.lua +++ b/scada-common/util.lua @@ -24,7 +24,7 @@ local t_pack = table.pack local util = {} -- scada-common version -util.version = "1.4.12" +util.version = "1.5.0" util.TICK_TIME_S = 0.05 util.TICK_TIME_MS = 50