Skip to content

Commit

Permalink
Support newer "//action" without the space
Browse files Browse the repository at this point in the history
  • Loading branch information
TojikCZ committed Jan 3, 2024
1 parent b775a73 commit 7858a63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# ChangeLog

0.8.0alpha4
* Support newer "//action" without the space

0.8.0alpha3
* Improve message shown when preparing a power panic recovery
* Fix print stats not ignoring the skipped part of gcode after PP
Expand Down
18 changes: 9 additions & 9 deletions prusa/link/printer_adapter/structures/regular_expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@

BUSY_REGEX = re.compile("^echo:busy: processing$")
ATTENTION_REGEX = re.compile("^echo:busy: paused for user$")
PAUSE_PRINT_REGEX = re.compile(r"^// action:pause$")
PAUSED_REGEX = re.compile(r"^// action:paused$")
RESUME_PRINT_REGEX = re.compile("^// action:resume$")
RESUMED_REGEX = re.compile("^// action:resumed$")
CANCEL_REGEX = re.compile("^// action:cancel$")
READY_REGEX = re.compile("^// action:ready$")
NOT_READY_REGEX = re.compile("^// action:not_ready$")
REPRINT_REGEX = re.compile("^// action:start$")
PAUSE_PRINT_REGEX = re.compile(r"^// ?action:pause$")
PAUSED_REGEX = re.compile(r"^// ?action:paused$")
RESUME_PRINT_REGEX = re.compile("^// ?action:resume$")
RESUMED_REGEX = re.compile("^// ?action:resumed$")
CANCEL_REGEX = re.compile("^// ?action:cancel$")
READY_REGEX = re.compile("^// ?action:ready$")
NOT_READY_REGEX = re.compile("^// ?action:not_ready$")
REPRINT_REGEX = re.compile("^// ?action:start$")
# This girthy regexp tries to capture all error messages requiring printer
# reset using M999 or manual button, with connect, only manual reset shall
# be accepted
Expand Down Expand Up @@ -180,4 +180,4 @@

RESET_ACTIVATED_REGEX = re.compile(r"^Reset mode activated$")
RESET_DEACTIVATED_REGEX = re.compile(r"^Reset mode deactivated$")
PP_RECOVER_REGEX = re.compile(r"^// action:uvlo_recovery_ready$")
PP_RECOVER_REGEX = re.compile(r"^// ?action:uvlo_recovery_ready$")

0 comments on commit 7858a63

Please sign in to comment.