RoaddogLabs / open-race-scale

Open Source Racecar Scale
GNU Lesser General Public License v3.0
0 stars 2 forks source link

app rpi: run mode fails with divide by zero error #24

Closed RoaddogLabs closed 7 years ago

RoaddogLabs commented 7 years ago

In run mode display fails and exits with divide by zero error

In sim mode mock display works as expected

File "/home/pi/open-race-scale/software/core/corerp3.py", line 90, in get_percent return (val1 / val2) * 100 ZeroDivisionError: float division by zero

RoaddogLabs commented 7 years ago

possibly due to a hardware not present error test to see what happens if hardware is connected then fails, unplugged, etc

RoaddogLabs commented 7 years ago

see #27 for behaviour with first batch rpi hardware

RoaddogLabs commented 7 years ago

can't replicate with rpi hardware

RoaddogLabs commented 7 years ago

closing, appears to be only when there is no hardware connected to the pi