Skip to content

Commit 4e944c7

Browse files
Rakesh Ravi Shankarmsintov
authored andcommitted
VIC-14449: Fixed bug with enum value (#179)
1 parent 065c487 commit 4e944c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/apps/remote_control/remote_control.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def handle_index_page():
464464
var gLastClientX = -1
465465
var gLastClientY = -1
466466
var gIsMouseLookEnabled = """ + to_js_bool_string(_is_mouse_look_enabled_by_default) + """
467-
var gAreDebugAnnotationsEnabled = """+ str(flask_app.display_debug_annotations.value) + """
467+
var gAreDebugAnnotationsEnabled = """+ str(flask_app.display_debug_annotations) + """
468468
var gIsFreeplayEnabled = false
469469
var gUserAgent = window.navigator.userAgent;
470470
var gIsMicrosoftBrowser = gUserAgent.indexOf('MSIE ') > 0 || gUserAgent.indexOf('Trident/') > 0 || gUserAgent.indexOf('Edge/') > 0;
@@ -808,7 +808,7 @@ def run():
808808

809809
with anki_vector.AsyncRobot(args.serial, enable_face_detection=True, enable_custom_object_detection=True) as robot:
810810
flask_app.remote_control_vector = RemoteControlVector(robot)
811-
flask_app.display_debug_annotations = DebugAnnotations.ENABLED_ALL
811+
flask_app.display_debug_annotations = DebugAnnotations.ENABLED_ALL.value
812812

813813
robot.camera.init_camera_feed()
814814
robot.behavior.drive_off_charger()

0 commit comments

Comments
 (0)