Skip to content

Commit

Permalink
Merge pull request #547 from zelatyna/patch-1
Browse files Browse the repository at this point in the history
Change output to request_start to have the knit instructions displayed
  • Loading branch information
t0mpr1c3 authored Jul 3, 2023
2 parents 810d4dd + 61afae5 commit 55cb669
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 55cb669

Please sign in to comment.