Xiao ESP32C3 Compile Error (could not convert ‘&Serial’ from ‘HWCDC*’ to ‘HardwareSerial*’)
Hi,
Thanks for this library, I've had it working on a Nano and Nano IOT but when I try with a Xiao ESP32C3 it won't compile, I get the following error:
Aurora.h:97:63: error: could not convert '& Serial' from 'HWCDC*' to 'HardwareSerial*'
Aurora(byte inverterAddress, HardwareSerial* serial = &Serial, byte serialCommunicationControlPin = SERIAL_COMMUNICATION_CONTROL_PIN);
From the ino:
#include "Arduino.h"
#include <Aurora.h>
//#include <SoftwareSerial.h>
//#include <MemoryFree.h>
//SoftwareSerial mySerial(10, 11); // RX, TX
Aurora inverter = Aurora(2, &Serial1, 5);
//Aurora inverter = Aurora(2, 10, 11, 5);
Any ideas how to resolve?
Thanks,