aboutsummaryrefslogtreecommitdiffstats
path: root/lib/canboot/flash_can.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/canboot/flash_can.py')
-rwxr-xr-xlib/canboot/flash_can.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/canboot/flash_can.py b/lib/canboot/flash_can.py
index b7877097..24440744 100755
--- a/lib/canboot/flash_can.py
+++ b/lib/canboot/flash_can.py
@@ -25,7 +25,7 @@ def output(msg: str) -> None:
sys.stdout.write(msg)
sys.stdout.flush()
-# Standard crc16 ccitt, take from msgproto.py in Klipper
+# Standard crc16 ccitt, take from msgproto.py in Kutter
def crc16_ccitt(buf: Union[bytes, bytearray]) -> int:
crc = 0xffff
for data in buf:
@@ -53,10 +53,10 @@ BOOTLOADER_CMDS = {
ACK_SUCCESS = 0xa0
NACK = 0xf1
-# Klipper Admin Defs (for jumping to bootloader)
-KLIPPER_ADMIN_ID = 0x3f0
-KLIPPER_SET_NODE_CMD = 0x01
-KLIPPER_REBOOT_CMD = 0x02
+# Kutter Admin Defs (for jumping to bootloader)
+KUTTER_ADMIN_ID = 0x3f0
+KUTTER_SET_NODE_CMD = 0x01
+KUTTER_REBOOT_CMD = 0x02
# CAN Admin Defs
CANBUS_ID_ADMIN = 0x3f0
@@ -386,12 +386,12 @@ class CanSocket:
self.output_busy = False
def _jump_to_bootloader(self, uuid: int):
- # TODO: Send Klipper Admin command to jump to bootloader.
+ # TODO: Send Kutter Admin command to jump to bootloader.
# It will need to be implemented
output_line("Sending bootloader jump command...")
plist = [(uuid >> ((5 - i) * 8)) & 0xFF for i in range(6)]
- plist.insert(0, KLIPPER_REBOOT_CMD)
- self.send(KLIPPER_ADMIN_ID, bytes(plist))
+ plist.insert(0, KUTTER_REBOOT_CMD)
+ self.send(KUTTER_ADMIN_ID, bytes(plist))
async def _query_uuids(self) -> List[int]:
output_line("Checking for canboot nodes...")
@@ -411,7 +411,7 @@ class CanSocket:
if resp[0] != CANBUS_RESP_NEED_NODEID:
continue
app_names = {
- KLIPPER_SET_NODE_CMD: "Klipper",
+ KUTTER_SET_NODE_CMD: "Kutter",
CANBUS_CMD_SET_NODEID: "CanBoot"
}
app = app_names.get(resp[7], "Unknown")
@@ -565,9 +565,9 @@ def main():
help="Can Interface"
)
parser.add_argument(
- "-f", "--firmware", metavar="<klipper.bin>",
- default="~/klipper/out/klipper.bin",
- help="Path to Klipper firmware file")
+ "-f", "--firmware", metavar="<kutter.bin>",
+ default="~/kutter/out/kutter.bin",
+ help="Path to Kutter firmware file")
parser.add_argument(
"-u", "--uuid", metavar="<uuid>", default=None,
help="Can device uuid"