From ef228b19ef328d917436f9d09c99951039ed1c71 Mon Sep 17 00:00:00 2001 From: Nicole Parrot Date: Thu, 27 Jun 2019 17:22:44 -0400 Subject: [PATCH] Fix lack of return value As set_grove_pwm_duty() doesn't return a value, let's not assign it. The documentation was already reflecting the proper situation, no return value. --- Software/Python/easysensors.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Software/Python/easysensors.py b/Software/Python/easysensors.py index b463d453..f798d285 100644 --- a/Software/Python/easysensors.py +++ b/Software/Python/easysensors.py @@ -482,10 +482,9 @@ def write(self, power): """ self.value = power - return_value = self.gpg.set_grove_pwm_duty(self.get_pin(), - power) - return return_value + self.gpg.set_grove_pwm_duty(self.get_pin(), power) + def write_freq(self, freq): """ Sets the frequency of the PWM signal.