From c62449a76f54fadbb0262114cb729472ce4b51ae Mon Sep 17 00:00:00 2001 From: "regicidal.plutophage" <36969337+regicidalplutophage@users.noreply.github.com> Date: Mon, 9 Dec 2024 15:47:08 +0300 Subject: [PATCH] Update bootcfg.py --- kmk/bootcfg.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/kmk/bootcfg.py b/kmk/bootcfg.py index 8750a327b..196f02110 100644 --- a/kmk/bootcfg.py +++ b/kmk/bootcfg.py @@ -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