Skip to content

Commit

Permalink
Merge pull request #74 from openxc/dashboard-fix
Browse files Browse the repository at this point in the history
Get an Evented message value instead of the item. This closes #73.
  • Loading branch information
peplin committed Apr 20, 2016
2 parents c4a3f02 + c94a3e6 commit 0e0ca32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ python:
before_install:
- sudo apt-get update -qq
- sudo apt-get install python-bluetooth -qq -y
- if [[ $TRAVIS_PYTHON_VERSION = '2.6' ]]; then pip install importlib; fi
- pip install pyserial
- pip install coveralls
install: pip install -q -e .
Expand Down
2 changes: 1 addition & 1 deletion openxc/tools/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def print_to_window(self, window, row, started_time):
result = ""
for item, value in enumerate(self.measurement_type.states):
# TODO missing keys here?
result += "%s: %s " % (value, self.events.get(item, "?"))
result += "%s: %s " % (value, self.events.get(value, "?"))
value = result

value_color = curses.color_pair(2)
Expand Down

0 comments on commit 0e0ca32

Please sign in to comment.