mirror of https://github.com/g4klx/MMDVM.git
Merge pull request #343 from mytechguyri/master
Added option to configure Serial Repeater baud rate
This commit is contained in:
commit
b8a0f7b1cf
3
Config.h
3
Config.h
|
@ -100,6 +100,9 @@
|
||||||
// Use the modem as a serial repeater for Nextion displays
|
// Use the modem as a serial repeater for Nextion displays
|
||||||
#define SERIAL_REPEATER
|
#define SERIAL_REPEATER
|
||||||
|
|
||||||
|
// Set the baud rate of the modem serial repeater for Nextion displays
|
||||||
|
#define SERIAL_REPEATER_BAUD_RATE 9600
|
||||||
|
|
||||||
// Use the modem as an I2C repeater for OLED displays
|
// Use the modem as an I2C repeater for OLED displays
|
||||||
// #define I2C_REPEATER
|
// #define I2C_REPEATER
|
||||||
|
|
||||||
|
|
|
@ -896,8 +896,12 @@ void CSerialPort::start()
|
||||||
beginInt(1U, SERIAL_SPEED);
|
beginInt(1U, SERIAL_SPEED);
|
||||||
|
|
||||||
#if defined(SERIAL_REPEATER)
|
#if defined(SERIAL_REPEATER)
|
||||||
|
#if defined(SERIAL_REPEATER_BAUD_RATE)
|
||||||
|
beginInt(3U, SERIAL_REPEATER_BAUD_RATE);
|
||||||
|
#else
|
||||||
beginInt(3U, 9600);
|
beginInt(3U, 9600);
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#if defined(I2C_REPEATER)
|
#if defined(I2C_REPEATER)
|
||||||
beginInt(10U, 9600);
|
beginInt(10U, 9600);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue