fixed serial baud from int to long to allow 38400

pull/10/head
g7uhn 2020-10-20 21:21:12 +01:00
rodzic cdf816f0aa
commit 3efdd672eb
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ void FT817::setSerial(SoftwareSerial portInfo)
}
// similar to Serial.begin(baud); command
void FT817::begin(int baud)
void FT817::begin(long baud)
{
rigCat.begin(baud);
}

Wyświetl plik

@ -333,7 +333,7 @@ class FT817
FT817();
// setup
void setSerial(SoftwareSerial portInfo); // load the softserial into the FT817
void begin(int baud); // set the baudrate of the softserial lib
void begin(long baud); // set the baudrate of the softserial lib
// toggles
void lock(boolean toggle); // lock/unlock

Wyświetl plik

@ -135,7 +135,7 @@ void setup(void)
{
// Start serial
Serial.begin(9600); // serial port for the main sketch to talk to PC serial monitor
radio.begin(9600); // start the serial port for the CAT library
radio.begin(38400); // start the serial port for the CAT library
// Set up some pins
pinMode(backlightPin, OUTPUT);