Skip to content

Commit

Permalink
Update bootcfg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
regicidalplutophage authored Dec 9, 2024
1 parent 50f87de commit c62449a
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions kmk/bootcfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,9 @@ def bootcfg(

usb_cdc.enable(data=True)

# sense not provided -> Skip boot configuration that may disable debug or
# rescue facilities.
if sense is None:
return False

# sense pulled low -> Skip boot configuration that may disable debug or
# rescue facilities.
if not sense.value:
# sense not provided or pulled low -> Skip boot configuration that may
# disable debug or rescue facilities.
if sense is None or not sense.value:
return False

# Entries for serial console (REPL) and storage are intentionally evaluated
Expand Down

0 comments on commit c62449a

Please sign in to comment.