Skip to content

Commit

Permalink
ubx-mq: print a nice message if no queues are found
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Klotzbuecher <mk@mkio.de>
  • Loading branch information
kmarkus committed Jul 22, 2020
1 parent bf57544 commit 4ce7f5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/ubx-mq
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ end
local mqs = mqueues_get()

if opttab[0][1] == "list" then
if #mqs == 0 then
print("no microblx mqueues found")
os.exit(0)
end
nd = ubx.node_create("ubx-mq", { loglevel=8})
ubx.load_module(nd, "stdtypes")
ubx.load_module(nd, "mqueue")
Expand Down

0 comments on commit 4ce7f5b

Please sign in to comment.