Skip to content

Made name of the check_dfu_mode() method all lowercase #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ble_legacy_dfu_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ble_secure_dfu_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion dfu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion nrf_ble_dfu_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down