Skip to content

Commit 0e0ca32

Browse files
committed
Merge pull request #74 from openxc/dashboard-fix
Get an Evented message value instead of the item. This closes #73.
2 parents c4a3f02 + c94a3e6 commit 0e0ca32

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ python:
55
before_install:
66
- sudo apt-get update -qq
77
- sudo apt-get install python-bluetooth -qq -y
8+
- if [[ $TRAVIS_PYTHON_VERSION = '2.6' ]]; then pip install importlib; fi
89
- pip install pyserial
910
- pip install coveralls
1011
install: pip install -q -e .

openxc/tools/dashboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def print_to_window(self, window, row, started_time):
9797
result = ""
9898
for item, value in enumerate(self.measurement_type.states):
9999
# TODO missing keys here?
100-
result += "%s: %s " % (value, self.events.get(item, "?"))
100+
result += "%s: %s " % (value, self.events.get(value, "?"))
101101
value = result
102102

103103
value_color = curses.color_pair(2)

0 commit comments

Comments
 (0)