sparkfun / SparkFun_CAN-Bus_Arduino_Library

Other
154 stars 99 forks source link

Update CAN_Write_Demo.ino #19

Open sonu874 opened 2 years ago

sonu874 commented 2 years ago

Created the message in the setup function and declared the tCAN message to be a global variable instead of a local variable in the loop function. So we will not lose time while generating the same message every time in the loop and the delay in sending the message would be much less.