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:
parent
dd14a9447a
commit
93c31e1ae9
|
@ -62,7 +62,9 @@ contributors to this project.
|
||||||
|
|
||||||
This section describes how to build the hardware for the CAN bus reader with a
|
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
|
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:
|
Recommended parts list:
|
||||||
|
|
||||||
|
|
|
@ -198,9 +198,9 @@ void loop() {
|
||||||
|
|
||||||
// First, verify that we have both Bluetooth and CAN up and running.
|
// First, verify that we have both Bluetooth and CAN up and running.
|
||||||
|
|
||||||
// Not clear how heavy is the Bluefruit.connected() call. Only check the
|
// Not clear how heavy is the isConnected() call. Only check the connectivity
|
||||||
// connectivity every 100 iterations to avoid stalling the CAN bus loop.
|
// every 100 iterations to avoid stalling the CAN bus loop.
|
||||||
if ((loop_iteration % 100) == 0 && !Bluefruit.connected()) {
|
if ((loop_iteration % 100) == 0 && !RaceChronoBle.isConnected()) {
|
||||||
Serial.println("RaceChrono disconnected!");
|
Serial.println("RaceChrono disconnected!");
|
||||||
raceChronoHandler.handleDisconnect();
|
raceChronoHandler.handleDisconnect();
|
||||||
stopCanBusReader();
|
stopCanBusReader();
|
||||||
|
|
Loading…
Reference in New Issue