Skip to content

Commit

Permalink
Added TODO to fix #1
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickBaus committed Jan 22, 2021
1 parent ef2b761 commit 9f25efa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sensors/sensorHost.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ def __connect_sensor(self, sensor_class, uid, connected_uid, port, name, enumera
callback_period = self.parent.get_callback_period(uid)
# Create new sensor obect and set up callbacks
if (callback_period > 0):
# TODO: Need to catch tinkerforge.ip_connection.Error or else the thread will die and no more sensors on this host will be served
self.append_sensor(sensor_class(uid, self, self.sensor_callback, callback_period))

def ping(self):
Expand Down

0 comments on commit 9f25efa

Please sign in to comment.