diff options
author | Thijs Triemstra <info@collab.nl> | 2025-07-25 18:31:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-25 12:31:19 -0400 |
commit | 60879fd298fe3b4f3dda63561e6a1c9bdc5ee9af (patch) | |
tree | 74cd5c84ca4758c2de14f0fd1686b75a74bfa142 /scripts/spi_flash | |
parent | ef4c76fe9494d0e011d6da5610fa868d2e702fff (diff) | |
download | kutter-60879fd298fe3b4f3dda63561e6a1c9bdc5ee9af.tar.gz kutter-60879fd298fe3b4f3dda63561e6a1c9bdc5ee9af.tar.xz kutter-60879fd298fe3b4f3dda63561e6a1c9bdc5ee9af.zip |
klippy: fix typos in python code (#6989)
Signed-off-by: Thijs Triemstra <info@collab.nl>
Diffstat (limited to 'scripts/spi_flash')
-rw-r--r-- | scripts/spi_flash/spi_flash.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/spi_flash/spi_flash.py b/scripts/spi_flash/spi_flash.py index 2a4b48ad..e45e0b7c 100644 --- a/scripts/spi_flash/spi_flash.py +++ b/scripts/spi_flash/spi_flash.py @@ -46,7 +46,7 @@ def calc_crc7(data, with_padding=True): crc ^= b & 0xFF for i in range(8): crc = (crc << 1) ^ poly if crc & 0x80 else crc << 1 - # The sdcard protocol likes the crc left justfied with a + # The sdcard protocol likes the crc left justified with a # padded bit if not with_padding: return crc @@ -566,7 +566,7 @@ class SDCardSPI: # At this time MMC is not supported if len(resp) == 5: if self.sd_version == 1 and resp[0] == 1: - # Check acceptable volatage range for V1 cards + # Check acceptable voltage range for V1 cards if resp[2] != 0xFF: raise OSError("flash_sdcard: card does not support" " 3.3v range") @@ -903,7 +903,7 @@ class SDCardSDIO: " out of IDLE after reset") if len(resp) == 4: if self.sd_version == 1: - # Check acceptable volatage range for V1 cards + # Check acceptable voltage range for V1 cards if resp[1] != 0xFF: raise OSError("flash_sdcard: card does not support" " 3.3v range") @@ -1643,7 +1643,7 @@ def main(): logging.basicConfig(level=log_level) flash_args = board_defs.lookup_board(args.board) if flash_args is None: - output_line("Unable to find defintion for board: %s" % (args.board,)) + output_line("Unable to find definition for board: %s" % (args.board,)) sys.exit(-1) flash_args['device'] = args.device flash_args['baud'] = args.baud |