From efeef90fc09e5252e5b3d4545acb42c766ef57da Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Thu, 21 Dec 2023 03:28:04 +0000 Subject: [PATCH] Oops --- backend/python/backend.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/python/backend.py b/backend/python/backend.py index 6fdc6d1..6174847 100644 --- a/backend/python/backend.py +++ b/backend/python/backend.py @@ -22,10 +22,10 @@ def information(): ip = os.popen("ifdata -pa wlan0").read() bt_ip = os.popen("ifdata -pa pan0").read() bt_connection = os.popen("hcitool con").read() - if '>' in BT_DEVICE.split(): - BT_DEVICE = True + if '>' in bt_connection .split(): + bt_connection = True else: - BT_DEVICE = False + bt_connection = False json = { @@ -34,7 +34,7 @@ def information(): "wifi_ip": ip, "bluetooth_ip": bt_ip, "dump1090_version": dump1090_ver, - "bt_connection": "CONNECTED" if BT_DEVICE else "N/A", + "bt_connection": "CONNECTED" if bt_connection else "N/A", "tar1090_version": tar1090_version } return json