Рефактор.

This commit is contained in:
sasha80
2024-12-13 10:09:29 +03:00
parent eae5af6464
commit d6a8769bb1
2 changed files with 1 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ func on_btn_cancel_pressed(btn, nodes):
signaller.emit_signal('interfer_off_all')
await get_tree().create_timer(0.1).timeout
btn.pressed = false
nodes.any(func(btn): btn.pressed = false)
nodes.any(func(b): b.pressed = false)
func on_btn_pressed(btn_this, btn_others):

View File

@@ -130,11 +130,6 @@ func on_timer_check_state(unit, ecms, resend_timeout):
send_ecm(ecm, unit)
ecm.tick_tx = tick
func on_manual_control():
auto_status = 0
func on_full_auto():
auto_status = 3
func on_manual_control():
auto_status = 0