Skip to content

Commit

Permalink
add node docstring to service and resource classes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Dec 12, 2023
1 parent bb6f0d8 commit 3e2b494
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions olaf/common/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class Resource:

def __init__(self):
self.node = None
"""Node or MasterNode: The app's CANopen node. Set to None until start() is called."""

def start(self, node: Node):
"""
Expand Down
2 changes: 2 additions & 0 deletions olaf/common/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ class Service:

def __init__(self):
self.node = None
"""Node or MasterNode: The app's CANopen node. Set to None until start() is called."""

self._event = Event()
self._thread = Thread(target=self._loop)
self._status = ServiceState.STOPPED
Expand Down

0 comments on commit 3e2b494

Please sign in to comment.