diff --git a/bin/pipetest.py b/bin/pipetest.py index ccaf807..c3103ab 100644 --- a/bin/pipetest.py +++ b/bin/pipetest.py @@ -17,8 +17,8 @@ def sendToSteamVR(text): return array -sendToSteamVR("settings 5 2"); -assert 0 +sendToSteamVR("settings 5 2") +#assert 0 pipe = open(r'\\.\pipe\ApriltagPipeIn', 'rb+', buffering=0) @@ -52,7 +52,7 @@ def sendToSteamVR(text): some_data = str.encode("getdevicepose 0") pipe.write(some_data) -resp = pipe.read(1024) +resp = pipe.read(int(1024)) string = resp.decode("utf-8") print(string)