mirror of
https://github.com/technix/ham_radio.git
synced 2024-07-15 03:59:33 +02:00
no empty RDS from beacons
This commit is contained in:
parent
7e18503ac3
commit
18912d724d
2
rds.lua
2
rds.lua
@ -2,7 +2,7 @@ function ham_radio.get_rds_messages(frequency)
|
||||
local transmitters = ham_radio.find_transmitters(frequency)
|
||||
local rds_messages = {}
|
||||
for position, transmitter in pairs(transmitters) do
|
||||
if transmitter.rds_message ~= "" then
|
||||
if transmitter.rds_message ~= "" and transmitter.rds_message ~= nil then
|
||||
-- construct message
|
||||
local message = table.concat({
|
||||
'[ Radio | ',
|
||||
|
Loading…
Reference in New Issue
Block a user