Skip to content

Commit

Permalink
Fix serve_core.py when there are no tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed May 21, 2019
1 parent f6cbcf9 commit ce86552
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/serve_core/serve_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ def __init__(self, filename):
if "freertos" in self._dump:
print("Dump contains FreeRTOS task info")
self.tasks = dict((t["h"], FreeRTOSTask(t)) for t in self._dump["freertos"]["tasks"])
else:
self.tasks = {}
self.target_features = self._dump.get("target_features")

def get_cur_task(self):
Expand Down

0 comments on commit ce86552

Please sign in to comment.