Skip to content

Commit

Permalink
Remove alarm check, as it is done in receive
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouchous-ledger committed Aug 16, 2024
1 parent bbe836d commit b75843c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pystages/cncrouter.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,12 +238,6 @@ def get_current_status(self) -> Optional[Tuple[CNCStatus, dict]]:
# Possible outputs
# '<Idle|MPos:1.000,3.000,4.000|FS:0,0|WCO:0.000,0.000,0.000>'

if status.startswith("ALARM:1"):
# The ALARM message is followed by something like
# '[MSG:Reset to continue]'
next = self.receive()
raise CNCError(next, CNCStatus.ALARM)

# Discard any unwanted format
if not (status.startswith("<") and status.endswith(">")):
print(f"Response to '?' is unexpected: {status}")
Expand Down

0 comments on commit b75843c

Please sign in to comment.