pavelmc / FT857d

CAT support for Arduino, simulating a Yaesu FT-857D
GNU General Public License v3.0
45 stars 16 forks source link

Example will not compile for esp8266 NodeMCU using Arduino IDE v1.8.13 #6

Open jponko opened 3 years ago

jponko commented 3 years ago

I had to modify lib ft857.h (line 107) prototype to: void begin(long baudrate, SerialConfig mode); // custom baudrate and mode and in ft857.cpp (line 55) // Alternative initializer with a custom baudrate and mode void ft857d::begin(long br, SerialConfig mode) {

Otherwise, compiler complains about int type not being type SerialConfig. This is only for the ESP8266. Not actually tested with a rig but at least now it will compile. I'm certain this has something to do with the esp8266 core because the original lib/example compiles for esp32 and UNO.

stdevPavelmc commented 3 years ago

Thank to spot that issue, I will be evaluating if create a conditional statement for the compiler or just change the variable at once.