Skip to content

Commit

Permalink
fixed some typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yulei committed May 2, 2024
1 parent 8dac061 commit f9ac255
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions src/main/python/amk/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,13 +805,6 @@ def fastwrite_anim_file(self, index, data, offset):
def fastwrite_anim_file_vendor(self, data):
self.fastdev.write(4, data)
return True
data = self.fastdev.read(0x84, 64)
if data[2] == AMK_PROTOCOL_OK:
#print("Write file at index:{}, size:{}".format(index, len(data)))
return True
else:
#print("Failed to write file: index=", index)
return False

def fastread_anim_file(self, index, offset, size):
data = struct.pack("<BBBBI", AMK_PROTOCOL_PREFIX, AMK_PROTOCOL_READ_FILE, index, size, offset)
Expand Down
4 changes: 2 additions & 2 deletions src/main/python/protocol/keyboard_comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ def reload(self, sideload_json=None):
if "animation" in self.definition:
for anim in self.definition["animation"]["format"]:
self.animations["format"].append({"name":anim["name"], "mode":anim["mode"], "suffix":anim["suffix"]})
transfer = self.definitions["animation"].get("transfer")
transfer = self.definition["animation"].get("transfer")
if transfer is not None:
self.animations["transfer"] = "transfer"
self.animations["transfer"] = transfer

self.reload_anim_file_list()

Expand Down

0 comments on commit f9ac255

Please sign in to comment.