Исправления. Переделка дельты на тик.
This commit is contained in:
@@ -25,8 +25,7 @@ class SPT25 extends unit.Unit:
|
||||
emit_signal('line_changed', self)
|
||||
emit_signal('data_received', rx_data)
|
||||
|
||||
func process(delta: float):
|
||||
tick += delta
|
||||
func process(tick: int):
|
||||
if (tick - tx_tick) > req_period:
|
||||
tx_tick = tick
|
||||
return Error.OK
|
||||
|
||||
Reference in New Issue
Block a user