From 3efdd672ebcc9c9e50c60dbd091680237a8b4757 Mon Sep 17 00:00:00 2001 From: g7uhn Date: Tue, 20 Oct 2020 21:21:12 +0100 Subject: [PATCH] fixed serial baud from int to long to allow 38400 --- Arduino/lib/ft817/ft817.cpp | 2 +- Arduino/lib/ft817/ft817.h | 2 +- Arduino/src/main.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Arduino/lib/ft817/ft817.cpp b/Arduino/lib/ft817/ft817.cpp index dd779f2..903d4e8 100644 --- a/Arduino/lib/ft817/ft817.cpp +++ b/Arduino/lib/ft817/ft817.cpp @@ -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); } diff --git a/Arduino/lib/ft817/ft817.h b/Arduino/lib/ft817/ft817.h index 81f4e1d..41314da 100644 --- a/Arduino/lib/ft817/ft817.h +++ b/Arduino/lib/ft817/ft817.h @@ -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 diff --git a/Arduino/src/main.cpp b/Arduino/src/main.cpp index 3b20b72..3d421e0 100644 --- a/Arduino/src/main.cpp +++ b/Arduino/src/main.cpp @@ -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);