Регрессия. Не работает контроль прибора УФ

This commit is contained in:
sasha80
2025-10-01 14:09:02 +03:00
parent 0b3f28d438
commit 4c65fd92ac
3 changed files with 6 additions and 2 deletions

View File

@@ -12,11 +12,11 @@ func _ready() -> void:
return
var unit_uf = network.get_unit_instance('уарэп-эмс')
unit_uf.connect('line_changed', on_line_changed)
on_timer.bind(unit_uf)
control_vk()
func on_timer(unit_uf: unit.Unit):
func on_timer(unit_name: StringName):
var unit_uf = network.get_unit_instance(unit_name)
status_uf() # отслеживание состояния прибора
if unit_uf.online: # проверка ЯУ, внутреннего коммутатора и ИП-5Б
control_ems(unit_uf.status) # проверка ЭМС ячеек

View File

@@ -155,3 +155,6 @@ horizontal_alignment = 1
vertical_alignment = 1
[node name="timer" type="Timer" parent="."]
autostart = true
[connection signal="timeout" from="timer" to="." method="on_timer" binds= [&"уарэп-эмс"]]