diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua index a63e97cc..41e06003 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua @@ -7,11 +7,11 @@ local M = setmetatable({}, { }) function M.match(target, subtarget, boards) - if M.get_target() ~= target then + if target and M.get_target() ~= target then return false end - if M.get_subtarget() ~= subtarget then + if subtarget and M.get_subtarget() ~= subtarget then return false end