Рефактор.

This commit is contained in:
sasha80
2025-12-09 12:17:03 +03:00
parent 4ea8a4c254
commit 92ff74efef

View File

@@ -171,7 +171,7 @@ class YaU07 extends unit.Unit:
cmd_code_tx = cmd_code
return true
func send_load_ems_done(cmd_code: int):
func send_load_ems_done(cmd_code: int) -> bool:
if (cmd_state == CmdState.WAIT) \
or (cmd_state == CmdState.SEND) \
or (cmd_state == CmdState.UNCK):
@@ -185,6 +185,7 @@ class YaU07 extends unit.Unit:
tx_len = 7
cmd_state = CmdState.SEND
cmd_code_tx = cmd_code
return true
## Возвращает код команды ЯУ-07.
## rx_data - Принятые данные.