From ed839f1c0dc04827da23033216af8a9b25d1810d Mon Sep 17 00:00:00 2001 From: Ted Zhu Date: Fri, 8 May 2020 23:04:53 -0400 Subject: [PATCH] Fix typo Fix typo dumb -> dump --- run_controller_cli.py | 2 +- scripts/dump_spi_flash.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/run_controller_cli.py b/run_controller_cli.py index 9204b6e..0f9365c 100644 --- a/run_controller_cli.py +++ b/run_controller_cli.py @@ -40,7 +40,7 @@ Options: --spi_flash Memory dump of a real Switch controller. Required for joystick emulation. Allows displaying of JoyCon colors. - Memory dumbs can be created using the dump_spi_flash.py script. + Memory dumps can be created using the dump_spi_flash.py script. -r --reconnect_bt_addr Previously connected Switch console Bluetooth address in string notation (e.g. "FF:FF:FF:FF:FF:FF") for reconnection. diff --git a/scripts/dump_spi_flash.py b/scripts/dump_spi_flash.py index c34bfa2..b92fd62 100644 --- a/scripts/dump_spi_flash.py +++ b/scripts/dump_spi_flash.py @@ -122,7 +122,7 @@ class DataReader: output_file.write(bytes(spi_data)) -async def dumb_spi_flash(hid_device, output_file=None): +async def dump_spi_flash(hid_device, output_file=None): SPI_FLASH_SIZE = 0x80000 spi_flash_reader = DataReader() @@ -163,10 +163,10 @@ async def _main(args, loop): if args.output: with open(args.output, 'wb') as output: with AsyncHID(path=controller['path'], loop=loop) as hid_controller: - await dumb_spi_flash(hid_controller, output_file=output) + await dump_spi_flash(hid_controller, output_file=output) else: with AsyncHID(path=controller['path'], loop=loop) as hid_controller: - await dumb_spi_flash(hid_controller) + await dump_spi_flash(hid_controller) if __name__ == '__main__':