From 193da7ae97e3442412512f4afed4cee0b00e9d13 Mon Sep 17 00:00:00 2001 From: ekaraogullari Date: Wed, 12 Jun 2024 21:29:12 +0300 Subject: [PATCH] update bluetooth device check for paired devices --- .gitignore | 2 ++ BlueDucky.py | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 68bc17f..986dc2f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +.vs/ + # Byte-compiled / optimized / DLL files __pycache__/ *.py[cod] diff --git a/BlueDucky.py b/BlueDucky.py index b4d2b72..ec7747b 100644 --- a/BlueDucky.py +++ b/BlueDucky.py @@ -659,8 +659,7 @@ def troubleshoot_bluetooth(): # List devices to see if any are connected result = subprocess.run(['bluetoothctl', 'devices'], capture_output=True, text=True) if "Device" not in result.stdout: - print("{reset}[{red}!{reset}] {red}CRITICAL{reset}: No Compatible {blue}Bluetooth devices{reset} are connected.") - return False + print("\033[0m[\033[91m!\033[0m] \033[91mCRITICAL\033[0m: Paired \033[94mBluetooth device\033[0m not found.") # if no issues are found then continue return True