Skip to content

Commit

Permalink
Add Core ONE support
Browse files Browse the repository at this point in the history
BFW-6355
  • Loading branch information
CZDanol committed Nov 27, 2024
1 parent 2a9961e commit be1ca77
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 48 deletions.
1 change: 1 addition & 0 deletions include/button_operations.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ enum class ButtonOperations : uint8_t {
Unload = 4,
StopPrint = 5,
DisableMMU = 6,
Skip = 7,
};
1 change: 1 addition & 0 deletions prusaerrors/shared/codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Printer(IntEnum):
MK39S = 0x001B
MK35S = 0x001C
M1 = 0x001D
COREONE = 0x001F


@unique
Expand Down
9 changes: 9 additions & 0 deletions tests/test_connect.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ def test_MK35S(self):
assert code.message
assert code.id

def test_COREONE(self):
code = PrinterCodes.get("31701")
assert code.printer == Printer.COREONE
assert code.category == Category(7)
assert code.error == 1
assert code.title
assert code.message
assert code.id

def test_no_MK35S(self):
"""MK35S doesn't have puppies."""
code = PrinterCodes.get("28512")
Expand Down
Loading

0 comments on commit be1ca77

Please sign in to comment.