Skip to content

Commit 0ae68b4

Browse files
committed
fix f1_dual_rev1 UART1 connectivity
1 parent d7caf56 commit 0ae68b4

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

firmware/boards/f1_dual_rev1/wideband_board_config.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
// enable BT module setup attempt
9292
#define BT_SERIAL_OVER_JDY33 TRUE
9393
#define BT_BROADCAST_NAME "RusEFI WBO x2"
94+
#define BT_SERIAL_PORT SD3
9495

9596
// *******************************
9697
// Indication: per channel status LED + communication LED

firmware/console/binary/tunerstudio_io_serial.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020
#define BT_BROADCAST_NAME "RusEFI WBO"
2121
#endif
2222

23+
#ifndef BT_SERIAL_PORT
24+
#define BT_SERIAL_PORT SD1
25+
#endif
26+
2327
// JDY-33 has 9: 128000 which we do not
2428
static const unsigned int baudRates[] = { 115200, 9600, 38400, 2400, 4800, 19200, 57600 };
2529
static const unsigned int baudRateCodes[] = {8, 4, 6, 2, 3, 5, 7 };
@@ -93,7 +97,7 @@ int SerialTsChannel::reStart() {
9397
/* Stop first */
9498
sdStop(m_driver);
9599

96-
if (BT_SERIAL_OVER_JDY33) {
100+
if (BT_SERIAL_OVER_JDY33 && (m_driver == &BT_SERIAL_PORT)) {
97101
/* try BT setup */
98102
int retry = 3;
99103
bool done = false;

0 commit comments

Comments
 (0)