From e1b7352d91f766543777934de516345b4504135c Mon Sep 17 00:00:00 2001 From: Bernd Reuther Date: Thu, 4 Mar 2021 16:54:02 +0100 Subject: [PATCH] server test --- kamera_server.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kamera_server.py b/kamera_server.py index 9f8378f..cdf0a42 100644 --- a/kamera_server.py +++ b/kamera_server.py @@ -85,13 +85,11 @@ def action(changePin, action): def motor_test(motor, position): if motor == "drehen": m1.stop() - time.sleep(1) m1.start() - time.sleep(1) m1.gehe_zu(int(position)) return 'Drehen: ' + str(m1.pos) -#if __name__ == "__main__": -# kamera_server.run(host='0.0.0.0') -application = kamera_server +if __name__ == "__main__": + kamera_server.run(host='0.0.0.0') +