sdp8483 / ESP32-Arduino-CAN

An Arduino CAN-Bus library for ESP32
MIT License
9 stars 4 forks source link

Typo on Send example #2

Closed MusicLeecher closed 8 months ago

MusicLeecher commented 8 months ago

There is a typo on send example:

void setup() {
  Serial.begin(115200);
  Serial.println("ESP32-Arduino-CAN Send Basic Demo");

  /* initialize and start, use pin 5 as CAN_tx and pin 4 as CAN_rx, CAN bus is set to 500kbps */
  ESP32Can.CANInit(GPIO_NUM_5, GPIO_NUM_4, ESP32_SPEED_500KBPS);
} 

should be:

void setup() {
  Serial.begin(115200);
  Serial.println("ESP32-Arduino-CAN Send Basic Demo");

  /* initialize and start, use pin 5 as CAN_tx and pin 4 as CAN_rx, CAN bus is set to 500kbps */
  ESP32Can.CANInit(GPIO_NUM_5, GPIO_NUM_4, ESP32CAN_SPEED_500KBPS);
} 
sdp8483 commented 8 months ago

Nice find! This has been fixed, thanks.