mirror of
https://github.com/technix/ham_radio.git
synced 2024-08-19 12:44:12 +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 transmitters = ham_radio.find_transmitters(frequency)
|
||||||
local rds_messages = {}
|
local rds_messages = {}
|
||||||
for position, transmitter in pairs(transmitters) do
|
for position, transmitter in pairs(transmitters) do
|
||||||
if transmitter.rds_message ~= "" then
|
if transmitter.rds_message ~= "" and transmitter.rds_message ~= nil then
|
||||||
-- construct message
|
-- construct message
|
||||||
local message = table.concat({
|
local message = table.concat({
|
||||||
'[ Radio | ',
|
'[ Radio | ',
|
||||||
|
Loading…
Reference in New Issue
Block a user