From 2302a74e767d2686c0a7a95387fc004f266d7446 Mon Sep 17 00:00:00 2001 From: mdxs Date: Tue, 26 Mar 2019 22:56:04 +0100 Subject: [PATCH] Made name of the check_dfu_mode() method all lowercase --- ble_legacy_dfu_controller.py | 2 +- ble_secure_dfu_controller.py | 2 +- dfu.py | 2 +- nrf_ble_dfu_controller.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ble_legacy_dfu_controller.py b/ble_legacy_dfu_controller.py index 614afdf..29d895f 100644 --- a/ble_legacy_dfu_controller.py +++ b/ble_legacy_dfu_controller.py @@ -184,7 +184,7 @@ def start(self, verbose=False): # Check if the peripheral is running in bootloader (DFU) or application mode # Returns True if the peripheral is in DFU mode # -------------------------------------------------------------------------- - def check_DFU_mode(self): + def check_dfu_mode(self): if verbose: print "Checking DFU State..." cmd = 'char-read-uuid %s' % self.UUID_VERSION diff --git a/ble_secure_dfu_controller.py b/ble_secure_dfu_controller.py index e8cda1e..b901a6c 100644 --- a/ble_secure_dfu_controller.py +++ b/ble_secure_dfu_controller.py @@ -103,7 +103,7 @@ def start(self): # Check if the peripheral is running in bootloader (DFU) or application mode # Returns True if the peripheral is in DFU mode # -------------------------------------------------------------------------- - def check_DFU_mode(self): + def check_dfu_mode(self): print "Checking DFU State..." self.ble_conn.sendline('characteristics') diff --git a/dfu.py b/dfu.py index bf4f4fc..094b1f1 100755 --- a/dfu.py +++ b/dfu.py @@ -142,7 +142,7 @@ def main(): # Connect to peer device. Assume application mode. if ble_dfu.scan_and_connect(): - if not ble_dfu.check_DFU_mode(): + if not ble_dfu.check_dfu_mode(): print "Need to switch to DFU mode" success = ble_dfu.switch_to_dfu_mode() if not success: diff --git a/nrf_ble_dfu_controller.py b/nrf_ble_dfu_controller.py index d99a91a..61fb24e 100644 --- a/nrf_ble_dfu_controller.py +++ b/nrf_ble_dfu_controller.py @@ -31,7 +31,7 @@ def start(self): # Returns True if the peripheral is in DFU mode # -------------------------------------------------------------------------- @abstractmethod - def check_DFU_mode(self): + def check_dfu_mode(self): pass @abstractmethod