diff --git a/coordinator/startup.lua b/coordinator/startup.lua index 6283cb0..6c26267 100644 --- a/coordinator/startup.lua +++ b/coordinator/startup.lua @@ -16,7 +16,7 @@ local config = require("coordinator.config") local coordinator = require("coordinator.coordinator") local renderer = require("coordinator.renderer") -local COORDINATOR_VERSION = "alpha-v0.4.7" +local COORDINATOR_VERSION = "alpha-v0.4.8" local print = util.print local println = util.println diff --git a/coordinator/ui/layout/unit_view.lua b/coordinator/ui/layout/unit_view.lua index 412680e..52fcbce 100644 --- a/coordinator/ui/layout/unit_view.lua +++ b/coordinator/ui/layout/unit_view.lua @@ -291,7 +291,7 @@ local function init(monitor, id) ---@fixme test code local rps = true local function _test_toggle() - rps_nof.update(rps) + rps_trp.update(rps) rps = not rps tcallbackdsp.dispatch(0.25, _test_toggle) end diff --git a/graphics/elements/indicators/trilight.lua b/graphics/elements/indicators/trilight.lua index df09e51..9d8731e 100644 --- a/graphics/elements/indicators/trilight.lua +++ b/graphics/elements/indicators/trilight.lua @@ -19,9 +19,9 @@ local element = require("graphics.element") ---@return graphics_element element, element_id id local function tristate_indicator_light(args) assert(type(args.label) == "string", "graphics.elements.indicators.trilight: label is a required field") - assert(type(args.c1) == "integer", "graphics.elements.indicators.trilight: c1 is a required field") - assert(type(args.c2) == "integer", "graphics.elements.indicators.trilight: c2 is a required field") - assert(type(args.c3) == "integer", "graphics.elements.indicators.trilight: c3 is a required field") + assert(type(args.c1) == "number", "graphics.elements.indicators.trilight: c1 is a required field") + assert(type(args.c2) == "number", "graphics.elements.indicators.trilight: c2 is a required field") + assert(type(args.c3) == "number", "graphics.elements.indicators.trilight: c3 is a required field") -- single line args.height = 1 @@ -30,9 +30,9 @@ local function tristate_indicator_light(args) args.width = math.max(args.min_label_width or 1, string.len(args.label)) + 2 -- blit translations - local c1 colors.toBlit(args.c1) - local c2 colors.toBlit(args.c2) - local c3 colors.toBlit(args.c3) + local c1 = colors.toBlit(args.c1) + local c2 = colors.toBlit(args.c2) + local c3 = colors.toBlit(args.c3) -- create new graphics element base object local e = element.new(args)