Skip to content

Commit

Permalink
Merge pull request #248 from CleoQc/fix/return_value
Browse files Browse the repository at this point in the history
Fix lack of return value
  • Loading branch information
CleoQc authored Jun 27, 2019
2 parents 8d4c246 + ef228b1 commit 885f159
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Software/Python/easysensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 885f159

Please sign in to comment.