Skip to content

Commit

Permalink
change output to request_start
Browse files Browse the repository at this point in the history
This it to fix the instructions "Please start machine. (Set the carriage to mode KC-I or KC-II and move the carriage over the left turn mark)." Currently they just flash quickly
  • Loading branch information
zelatyna authored Jul 2, 2023
1 parent 810d4dd commit 61afae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/python/ayab/engine/engine_fsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _API6_init(control, operation):
# operation = Operation.KNIT:
control.state = State.REQUEST_START
control.logger.debug("State REQUEST_START")
return Output.WAIT_FOR_INIT
return Output.NONE
else:
control.logger.error("Error initializing firmware: " + str(param))
return Output.ERROR_INITIALIZING_FIRMWARE
Expand Down Expand Up @@ -147,7 +147,7 @@ def _API6_request_start(control, operation):
control.logger.debug("Knit init failed with error code " +
str(param) + " in state " + str(control.status.firmware_state))
# TODO: more output to describe error
return Output.NONE
return Output.WAIT_FOR_INIT

def _API6_confirm_start(control, operation):
token, param = control.check_serial_API6()
Expand Down

0 comments on commit 61afae5

Please sign in to comment.