mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Add check if connected but no interface created
This commit is contained in:
@ -515,6 +515,11 @@ class BTTether(plugins.Plugin):
|
||||
device.network, success = BTNap.nap(dev_remote)
|
||||
|
||||
if success:
|
||||
if device.interface() is None:
|
||||
ui.set('bluetooth', 'BE')
|
||||
logging.info('BT-TETHER: Could not establish nap connection with %s', device.name)
|
||||
continue
|
||||
|
||||
logging.info('BT-TETHER: Created interface (%s)', device.interface())
|
||||
ui.set('bluetooth', 'C')
|
||||
any_device_connected = True
|
||||
|
Reference in New Issue
Block a user