Commit Graph

8 Commits

Author SHA1 Message Date
jvblanck e3f20ebe57 Don't draw text at the left edge
Part of the display of one of the steering wheels is blocked by a cable
tie.
2021-07-18 19:24:41 +02:00
jvblanck 895280cb5a Don't send data if display is disconnected
Otherwise, we're waiting 1s on pretty much any call to the display. If
the display gets disconnected at the start of the `update_display()`
function, that can mean quite the delay.

It's possible that this delay triggers a watchdog timer that blinks the
LEDs, but there doesn't appear to be any watchdog timer configured.
2021-07-18 18:27:47 +02:00
jvblanck fb68e8c4d6 Bugfixes for fault handlers 2021-07-18 17:14:03 +02:00
jazzpi 2ca1ec4b8f Add fault handlers for debugging
The fault handlers blink different LEDs depending on the kind of fault:

HardFault  -> All
MemManage  -> Left of display
BusFault   -> Right of display
UsageFault -> Left and right of display

Additionally, they dump information about the fault to the flash and
Serial (if connected). The information dumped to the flash can later be
retrieved via Serial by sending a 'd'.
2021-07-17 20:15:55 +02:00
jazzpi 7815f03c84 Add .clang-format 2021-07-17 20:09:02 +02:00
jvblanck beff90a10a Updated CAN interface 2021-06-30 21:36:51 +02:00
jvblanck 4d62419d72 e-wagen: Use updated LEDs & kill display 2021-06-18 15:52:50 +02:00
jvblanck 4faddf9248 Initial commit
This is just the 2018 code configured for PlatformIO
2021-06-15 19:42:00 +02:00