Skip to content

Commit

Permalink
Fix crc issue
Browse files Browse the repository at this point in the history
  • Loading branch information
3d-gussner committed Dec 18, 2024
1 parent d4db7cb commit ab71c47
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions prusa/link/printer_adapter/structures/regular_expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,21 +156,21 @@
r"(Thermal Model settings:)$")

MMU_MAJOR_REGEX = re.compile(
r"^echo:MMU[23]:<R0 A(?P<number>[0-9a-fA-F]+)\*..\.$")
r"^echo:MMU[23]:<R0 A(?P<number>[0-9a-fA-F]+)\*[0-9a-f]{1,2}\.$")
MMU_MINOR_REGEX = re.compile(
r"^echo:MMU[23]:<R1 A(?P<number>[0-9a-fA-F]+)\*..\.$")
r"^echo:MMU[23]:<R1 A(?P<number>[0-9a-fA-F]+)\*[0-9a-f]{1,2}\.$")
MMU_REVISION_REGEX = re.compile(
r"^echo:MMU[23]:<R2 A(?P<number>[0-9a-fA-F]+)\*..\.$")
r"^echo:MMU[23]:<R2 A(?P<number>[0-9a-fA-F]+)\*[0-9a-f]{1,2}\.$")
MMU_BUILD_REGEX = re.compile(
r"^echo:MMU[23]:<R3 A(?P<number>[0-9a-fA-F]+)\*..\.$")
r"^echo:MMU[23]:<R3 A(?P<number>[0-9a-fA-F]+)\*[0-9a-f]{1,2}\.$")
MMU_SLOT_REGEX = re.compile(
r"^echo:MMU2:MMU2tool=(?P<slot>\d{1,2})$")
# This can report an error or a command in progress,
# we don't know before parsing
MMU_Q0_RESPONSE_REGEX = re.compile(
r"^echo:MMU[23]:<(?P<command>[A-Z][0-9a-fA-F]+) "
r"(?P<progress>[EFP]([0-9a-fA-F]{0,4}))\*..\.$")
MMU_Q0_REGEX = re.compile(r"^echo:MMU[23]:>Q0\*..\.$")
r"(?P<progress>[EFP]([0-9a-fA-F]{0,4}))\*[0-9a-f]{1,2}\.$")
MMU_Q0_REGEX = re.compile(r"^echo:MMU[23]:>Q0\*[0-9a-f]{1,2}\.$")

MMU_PROGRESS_REGEX = re.compile(
r"echo:MMU2:(?P<message>"
Expand Down

0 comments on commit ab71c47

Please sign in to comment.