mirror of https://github.com/g4klx/MMDVM.git
Make serial speed a compile option
This commit is contained in:
parent
04d0b15545
commit
31f0e24588
3
Config.h
3
Config.h
|
@ -35,6 +35,9 @@
|
|||
// For 19.2 MHz
|
||||
// #define EXTERNAL_OSC 19200000
|
||||
|
||||
// Use a higher baudrate for host communication. Required for FM network !
|
||||
// #define SERIAL_SPEED 230400
|
||||
|
||||
// Allow the use of the COS line to lockout the modem
|
||||
// #define USE_COS_AS_LOCKOUT
|
||||
|
||||
|
|
|
@ -602,7 +602,7 @@ void CSerialPort::setMode(MMDVM_STATE modemState)
|
|||
|
||||
void CSerialPort::start()
|
||||
{
|
||||
beginInt(1U, 115200);
|
||||
beginInt(1U, SERIAL_SPEED);
|
||||
|
||||
#if defined(SERIAL_REPEATER)
|
||||
beginInt(3U, 9600);
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
#include "Globals.h"
|
||||
#include "RingBuffer.h"
|
||||
|
||||
#if !defined(SERIAL_SPEED)
|
||||
#define SERIAL_SPEED 115200
|
||||
#endif
|
||||
|
||||
|
||||
class CSerialPort {
|
||||
public:
|
||||
|
|
Loading…
Reference in New Issue