Added option in demo to disable waypoint redirection (and fixed typos in subnet.py)
[affinity.git] / scripts / demo.py
index 78c4d6dd81d24f1be3af40d37c5b89e08e31bea6..fcbe30dc97fd1a60417bc44282d5a66525fdfc80 100644 (file)
@@ -66,6 +66,8 @@ class WaypointMonitor(Thread):
                 ac.add_waypoint(link_name, self.waypoint_address)
                 ac.enable_waypoint(link_name)
                 did_waypoint = True
+                raw_input("[Press Enter to disable waypoint redirection] ")
+                ac.disable_waypoint(link_name)
             time.sleep(1)
 
 def main():