Actually use pin factory

This commit is contained in:
Piv
2019-11-24 14:14:03 +10:30
parent a08165e8a5
commit 843d03fd49

View File

@@ -74,7 +74,7 @@ class MotorServicer(motorService_pb2_grpc.CarControlServicer):
return grpc.ssl_server_credentials([[pvtKeyBytes, pvtCertBytes]]) return grpc.ssl_server_credentials([[pvtKeyBytes, pvtCertBytes]])
motor = Motor() motor = Motor()
servo = Servo(servo_pin, Device.pin_factory) servo = Servo(servo_pin, pin_factory=Device.pin_factory)
servicer = MotorServicer(motor, servo) servicer = MotorServicer(motor, servo)
service_thread = Thread(target=servicer.start_server) service_thread = Thread(target=servicer.start_server)