В процессе

This commit is contained in:
sasha80
2023-08-08 08:52:53 +03:00
parent 04e9a3ad05
commit 29101b0a6e
13 changed files with 140 additions and 163 deletions

View File

@@ -79,12 +79,12 @@ class YaU07:
func send_isa(cmd_code: int, ports_data: Array) -> bool:
if (cmd_state == CmdState.WAIT) or (cmd_state == CmdState.SEND):
if (cmd_state == CmdState.WAIT) \
or (cmd_state == CmdState.SEND) \
or (cmd_state == CmdState.UNCK):
return false
if not ((cmd_code == CmdCode.READ_ISA) or (cmd_code == CmdCode.WRITE_ISA)):
return false
if cmd_state == CmdState.UNCK:
return false
cmd_num_tx = (cmd_num_rx + 1) % 0xffff