Diff between f9ceb20d830a1b1c5548a50992b5cce3ad2d20d3 and 1c698db14c576b1d776c4d259a49ed542d892424

Changed Files

File Additions Deletions Status
test/simple-agent +5 -0 modified

Full Patch

diff --git a/test/simple-agent b/test/simple-agent
index 5fe9b01..deb6497 100755
--- a/test/simple-agent
+++ b/test/simple-agent
@@ -159,6 +159,11 @@ if __name__ == '__main__':
 
 	print("Agent registered")
 
+	# Fix-up old style invocation (BlueZ 4)
+	if len(args) > 0 and args[0].startswith("hci"):
+		options.adapter_pattern = args[0]
+		del args[:1]
+
 	if len(args) > 0:
 		device = bluezutils.find_device(args[0],
 						options.adapter_pattern)