Skip to content

Commit

Permalink
use observation mode for gap discover
Browse files Browse the repository at this point in the history
  • Loading branch information
andete committed May 13, 2014
1 parent 48fe138 commit 70067f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ble.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def start(self, port = None):
self.send_command(ble.ble_cmd_gap_set_scan_parameters(0xC8, 0xC8, 1))
ble.check_activity(ser, 1)
# start scanning now
self.send_command(ble.ble_cmd_gap_discover(1))
self.send_command(ble.ble_cmd_gap_discover(2))
ble.check_activity(ser, 1)
# IO port stuff for LED; doesn't work currently
self.send_command(ble.ble_cmd_hardware_io_port_config_pull(0, 0, 0))
Expand Down
2 changes: 1 addition & 1 deletion gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ def connection_status(self, handle, mac, status):
self.qtab.removeTab(idx)
except KeyError: # old stale connection
pass
self.run_collection()
self.ble.resume_collection() # TODO

def double_click(self):
idx = self.tab_exists(self.selected_device)
Expand Down

0 comments on commit 70067f2

Please sign in to comment.