Reset standalone receiver when switching frequency

This commit is contained in:
Serhii Mozhaiskyi 2019-12-24 13:42:10 +02:00
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',