Skip to content

Commit 7e93674

Browse files
committed
Fix inconsequential typo in get_firmware_crcs internal variable name
1 parent 7e98825 commit 7e93674

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zigpy_znp/tools/flash_write.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def compute_crc16(data: bytes) -> int:
4242

4343
def get_firmware_crcs(firmware: bytes) -> typing.Tuple[int, int]:
4444
# There is room for *two* CRCs in the firmware file: the expected and the computed
45-
firmware_wihout_crcs = (
45+
firmware_without_crcs = (
4646
firmware[: c.ubl.IMAGE_CRC_OFFSET]
4747
+ firmware[c.ubl.IMAGE_CRC_OFFSET + 4 :]
4848
+ b"\x00\x00"
@@ -53,7 +53,7 @@ def get_firmware_crcs(firmware: bytes) -> typing.Tuple[int, int]:
5353
firmware[c.ubl.IMAGE_CRC_OFFSET : c.ubl.IMAGE_CRC_OFFSET + 2], "little"
5454
)
5555

56-
return real_crc, compute_crc16(firmware_wihout_crcs)
56+
return real_crc, compute_crc16(firmware_without_crcs)
5757

5858

5959
async def write_firmware(firmware: bytes, radio_path: str):

0 commit comments

Comments
 (0)