Skip to content

Commit

Permalink
[product] Improve the custom python example
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault committed Feb 8, 2024
1 parent 6fbcd12 commit e260ac4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/projects/product/point_2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self, id, alias, device):
Service.__init__(self, 'Point_2D', id, alias, device)
self._point = (0, 0)
self._control = 0
self._buffer_mode = _SINGLE
self._buffer_mode = self._SINGLE
self._sampling_freq = 100.0

@property
Expand Down Expand Up @@ -75,7 +75,7 @@ def sampling_freq(self):
@sampling_freq.setter
def sampling_freq(self, sampling_freq):
self._sampling_freq = sampling_freq
self._push_value("time", 1.0 / sampling_freq)
self._push_value("sampling_freq", sampling_freq)


def _update(self, new_state):
Expand Down

0 comments on commit e260ac4

Please sign in to comment.