aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSolderpunk <solderpunk@sdf.org>2018-12-08 14:57:42 +0000
committerSolderpunk <solderpunk@sdf.org>2018-12-08 14:57:42 +0000
commitbd50b1dc29b5af66cc7a6b5dc59d4b6c234e2554 (patch)
tree3b061e594f9733c91b0cfa7cf59f5d4c81671900
parentGeneral tidy up. (diff)
Don't duplicate boards when updating list.
-rwxr-xr-xtelem.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/telem.lua b/telem.lua
index 47bdd05..3aa6d30 100755
--- a/telem.lua
+++ b/telem.lua
@@ -43,7 +43,7 @@ end
function update_boards()
for board in lfs.dir(path.join(_BBS_ROOT, "boards")) do
- if string.sub(board, 1, 1) ~= "." then
+ if string.sub(board, 1, 1) ~= "." and not boards[board] then
boards[board] = true
table.insert(board_names, board)
end