libs/sys: fix checking for empty table
This commit is contained in:
parent
4856c1ea23
commit
f2e4a6665b
1 changed files with 1 additions and 1 deletions
|
@ -701,7 +701,7 @@ function wifi.channels(iface)
|
|||
fd:close()
|
||||
end
|
||||
|
||||
if #cns == 0 then
|
||||
if not ((pairs(cns))(cns)) then
|
||||
cns = {
|
||||
2.412, 2.417, 2.422, 2.427, 2.432, 2.437,
|
||||
2.442, 2.447, 2.452, 2.457, 2.462
|
||||
|
|
Loading…
Reference in a new issue