Skip to content

Commit

Permalink
Adjust sensor sweep function to allow sweeping by type only.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgilldc committed Dec 11, 2021
1 parent 7a687aa commit 66e0fce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cobrabay/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def _CreateSensor(self,options):
else:
print("Requested timing budget '" + str(options['timing_budget']) + "' not supported. Keeping default of 50ms.")

new_sensor.start_ranging()

return new_sensor

# The HC-SR04 sensor, or US-100 in HC-SR04 compatibility mode
Expand Down

0 comments on commit 66e0fce

Please sign in to comment.