Skip to content

Commit

Permalink
Turn off debugging, fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
dhinakg committed May 1, 2021
1 parent 8ca070b commit 7d9cddc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Scripts/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def time_it(func: Callable, text: str, *args, **kwargs):


def debug(str):
if True:
if False:
input(f"DEBUG: {str}\nPress enter to continue")


Expand Down
2 changes: 1 addition & 1 deletion macOS.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def controller_class_to_type(parent_props, controller_props, inheritance):
elif "AppleUSBUHCI" in inheritance:
return shared.USBControllerTypes.UHCI
else:
shared.debug(f"Unknown controller type for class code {read_property(parent_props['class-code'], 2)}, inheritance {inheritance}!")
shared.debug(f"Unknown controller type for class code {read_property(parent_props['class-code'], 2) if 'class-code' in parent_props else 'none'}, inheritance {inheritance}!")
return shared.USBControllerTypes.Unknown

def get_controllers(self):
Expand Down

0 comments on commit 7d9cddc

Please sign in to comment.