From b248a34e2cb96447c7a60d3bf9d5161029175f6a Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Sat, 21 May 2022 18:17:38 +0200 Subject: [PATCH] fix: bad protobuf attribute --- pca9685/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pca9685/cli.py b/pca9685/cli.py index a95b1ab..3a918bf 100644 --- a/pca9685/cli.py +++ b/pca9685/cli.py @@ -67,7 +67,7 @@ def init_mqtt_steering_client(steering_controller: actuator.PWMSteering, broker_ try: steering_msg = SteeringMessage() steering_msg.ParseFromString(msg.payload) - steering_controller.run_threaded(steering_msg.Steering) + steering_controller.run_threaded(steering_msg.steering) except: logger.exception("unexpected error: unable to process steering, skip message") @@ -95,7 +95,7 @@ def init_mqtt_throttle_client(throttle_controller: actuator.PWMThrottle, broker_ try: throttle_msg = ThrottleMessage() throttle_msg.ParseFromString(msg.payload) - throttle_controller.run_threaded(throttle_msg.Throttle) + throttle_controller.run_threaded(throttle_msg.throttle) except: logger.exception("unexpected error: unable to process throttle, skip message")