Skip to content

Commit

Permalink
Re IanHarvey#123: fix sample code in Scanner doc to register delegate…
Browse files Browse the repository at this point in the history
… correctly
  • Loading branch information
Ian Harvey committed Apr 24, 2016
1 parent 03f69ed commit cf4541e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/scanner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Basic code to run a LE device scan follows this example::
elif isNewData:
print "Received new data from", dev.addr
scanner = Scanner()
scanner = Scanner().withDelegate(ScanDelegate())
devices = scanner.scan(10.0)

for dev in devices:
Expand Down

0 comments on commit cf4541e

Please sign in to comment.