diff --git a/mesecons_luacontroller/init.lua b/mesecons_luacontroller/init.lua index 5141f8a83d8fb739fa046f306b9bbe8f44b0edd7..d0c98adee3050dcfd349c14226ee0270212d74b0 100644 --- a/mesecons_luacontroller/init.lua +++ b/mesecons_luacontroller/init.lua @@ -57,9 +57,9 @@ end local generate_name = function (ports, overwrite) local overwrite = overwrite or {} local d = overwrite.d or (ports.d and 1 or 0) - local c = overwrite.d or (ports.c and 1 or 0) - local b = overwrite.d or (ports.b and 1 or 0) - local a = overwrite.d or (ports.a and 1 or 0) + local c = overwrite.c or (ports.c and 1 or 0) + local b = overwrite.b or (ports.b and 1 or 0) + local a = overwrite.a or (ports.a and 1 or 0) return BASENAME..d..c..b..a end