required change for compatibility with Leonardo and probably other boards

This commit is contained in:
nick
2019-08-13 09:16:27 +08:00
committed by Baozhu Zuo
parent 34de82b7ec
commit 1935258e58
@@ -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");