Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes endpointpanel if firmware server is in the network #3

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lagarto/lagarto-swap/swapmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,10 @@ def get_status(self, endpoints):
status = []
if endpoints is None:
for mote in self.network.motes:
for reg in mote.regular_registers:
for endp in reg.parameters:
status.append(endp.dumps())
if mote.regular_registers:
for reg in mote.regular_registers:
for endp in reg.parameters:
status.append(endp.dumps())
else:
for item in endpoints:
if "id" not in item:
Expand Down