Skip to content

Commit

Permalink
Corrected set_mode_sonar parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYsLab authored and MrYsLab committed Sep 23, 2019
1 parent 8189126 commit 9cfc86b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/OneGPIO/raspberry_pi/rpi_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,8 +318,8 @@ def set_mode_sonar(self, topic, payload):
:param payload: {"command": "set_mode_sonar", "trigger_pin": “PIN”, "tag":”TAG”
"echo_pin": “PIN”"tag":”TAG” }
"""
trigger = payload['trigger']
echo = payload['echo']
trigger = payload['trigger_pin']
echo = payload['echo_pin']
self.sonar = Sonar(self.pi, trigger, echo)
self.receive_loop_idle_addition = self.read_sonar

Expand Down

0 comments on commit 9cfc86b

Please sign in to comment.