Hi,

I am trying to learn little about arduino. I am trying to light up Volvo DIM with Arduino Uno and a MCP2515 CAN Shield.

The open code is available on Github. But I have tried in almost every way but I get a error code trying to upload the "CanLogReplayer" but I dont get error code when trying to upload "DimSimulator".

Code:
"CANLogReplayer:28:10: error: 'SerialUSB' was not declared in this scope

   while(!SerialUSB); //Prevents messages from being skipped because the arduino passes them before the serial connection is initialized.


          ^~~~~~~~~


Desktop\VOLVO DIM\VolvoDIM-master\CANLogReplayer\CANLogReplayer.ino:28:10: note: suggested alternative: 'Serial'


   while(!SerialUSB); //Prevents messages from being skipped because the arduino passes them before the serial connection is initialized.


          ^~~~~~~~~


          Serial


Using library MCP2515_lib-master in folder: C:\Program Files (x86)\Arduino\libraries\MCP2515_lib-master (legacy)


Using library SPI at version 1.0 in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr\libraries\SPI 


Using library SD at version 1.2.4 in folder: C:\Program Files (x86)\Arduino\libraries\SD 


exit status 1


'SerialUSB' was not declared in this scope
"
I'm using Andrew Gabler code on Github.

Anyone with experience that can guide me on this please?

Thank you,

Best regards,
DeLuXe