Skip to content

Commit baedddb

Browse files
committed
Rename RS232 bridge environments and update build flags for Serial1 and Serial2
1 parent eafbd85 commit baedddb

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

variants/rak4631/platformio.ini

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ build_src_filter = ${rak4631.build_src_filter}
4545
+<helpers/ui/SSD1306Display.cpp>
4646
+<../examples/simple_repeater>
4747

48-
[env:RAK_4631_repeater_bridge_rs232_tx0_rx0]
48+
[env:RAK_4631_repeater_bridge_rs232_serial1]
4949
extends = rak4631
5050
build_flags =
5151
${rak4631.build_flags}
@@ -55,9 +55,10 @@ build_flags =
5555
-D ADVERT_LON=0.0
5656
-D ADMIN_PASSWORD='"password"'
5757
-D MAX_NEIGHBOURS=50
58-
-D WITH_RS232_BRIDGE=Serial2
59-
-D WITH_RS232_BRIDGE_RX=19
60-
-D WITH_RS232_BRIDGE_TX=20
58+
-D WITH_RS232_BRIDGE=Serial1
59+
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL1_RX
60+
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL1_TX
61+
-UENV_INCLUDE_GPS
6162
; -D BRIDGE_DEBUG=1
6263
; -D MESH_PACKET_LOGGING=1
6364
; -D MESH_DEBUG=1
@@ -66,8 +67,8 @@ build_src_filter = ${rak4631.build_src_filter}
6667
+<helpers/ui/SSD1306Display.cpp>
6768
+<helpers/bridges/RS232Bridge.cpp>
6869
+<../examples/simple_repeater>
69-
70-
[env:RAK_4631_repeater_bridge_rs232_tx1_rx1]
70+
71+
[env:RAK_4631_repeater_bridge_rs232_serial2]
7172
extends = rak4631
7273
build_flags =
7374
${rak4631.build_flags}
@@ -77,9 +78,9 @@ build_flags =
7778
-D ADVERT_LON=0.0
7879
-D ADMIN_PASSWORD='"password"'
7980
-D MAX_NEIGHBOURS=50
80-
-D WITH_RS232_BRIDGE=Serial1
81-
-D WITH_RS232_BRIDGE_RX=15
82-
-D WITH_RS232_BRIDGE_TX=16
81+
-D WITH_RS232_BRIDGE=Serial2
82+
-D WITH_RS232_BRIDGE_RX=PIN_SERIAL2_RX
83+
-D WITH_RS232_BRIDGE_TX=PIN_SERIAL2_TX
8384
; -D BRIDGE_DEBUG=1
8485
; -D MESH_PACKET_LOGGING=1
8586
; -D MESH_DEBUG=1

0 commit comments

Comments
 (0)