Minor change to allow this code to compile with ESP32 version of arduino-RaceChrono

In case you haven't seen, please update your checkout of arduino-RaceChrono to
make sure you have the latest goodies available, such as basic ESP32 support.
This commit is contained in:
Timur Iskhodzhanov 2022-08-15 23:21:12 -07:00
parent dd14a9447a
commit 93c31e1ae9
2 changed files with 6 additions and 4 deletions

View File

@ -62,7 +62,9 @@ contributors to this project.
This section describes how to build the hardware for the CAN bus reader with a
JST SM connector. The connector can then be used to connect to a car-specific
harness for the CAN bus.
harness for the CAN bus. You can try other hardware (there's even experimental
support for ESP32 and RejsaCAN), but you'll need to figure some things yourself
if you do so.
Recommended parts list:

View File

@ -198,9 +198,9 @@ void loop() {
// First, verify that we have both Bluetooth and CAN up and running.
// Not clear how heavy is the Bluefruit.connected() call. Only check the
// connectivity every 100 iterations to avoid stalling the CAN bus loop.
if ((loop_iteration % 100) == 0 && !Bluefruit.connected()) {
// Not clear how heavy is the isConnected() call. Only check the connectivity
// every 100 iterations to avoid stalling the CAN bus loop.
if ((loop_iteration % 100) == 0 && !RaceChronoBle.isConnected()) {
Serial.println("RaceChrono disconnected!");
raceChronoHandler.handleDisconnect();
stopCanBusReader();