mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-09-15 11:03:48 +00:00
required change for compatibility with Leonardo and probably other boards
This commit is contained in:
@@ -28,7 +28,9 @@ char str[20];
|
||||
void setup()
|
||||
{
|
||||
SERIAL.begin(115200);
|
||||
|
||||
while (!SERIAL) {
|
||||
; // wait for serial port to connect. Needed for native USB port only
|
||||
}
|
||||
while (CAN_OK != CAN.begin(CAN_500KBPS)) // init can bus : baudrate = 500k
|
||||
{
|
||||
SERIAL.println("CAN BUS Shield init fail");
|
||||
|
||||
Reference in New Issue
Block a user