mirror of
https://github.com/technix/ham_radio.git
synced 2025-01-08 13:17:34 +01:00
Reset standalone receiver when switching frequency
This commit is contained in:
parent
b47ecc6f6a
commit
007614adce
@ -78,6 +78,8 @@ ham_radio.digiline_effector_receiver = function(pos, _, channel, msg)
|
||||
local validate = ham_radio.validate_frequency(new_frequency, true)
|
||||
if validate.result then
|
||||
meta:set_string("frequency", new_frequency)
|
||||
ham_radio.reset_receiver(pos)
|
||||
ham_radio.receiver_update_infotext(meta)
|
||||
end
|
||||
digilines.receptor_send(pos, digilines.rules.default, command_channel, {
|
||||
update = 'frequency',
|
||||
|
Loading…
Reference in New Issue
Block a user