Skip to content

Commit 4c0c4e4

Browse files
committed
Also #defines for IR receiver on test setup
1 parent b41524d commit 4c0c4e4

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

VanLiveConnect/Config.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,15 @@
318318

319319
// Used only by test setup on desk
320320
#ifdef ARDUINO_ARCH_ESP32
321+
#ifdef CONFIG_IDF_TARGET_ESP32S2
322+
#define IR_RECV_PIN GPIO_NUM_11 // IR receiver data pin
323+
#define IR_VCC GPIO_NUM_7
324+
#define IR_GND GPIO_NUM_5
325+
#else
321326
#define TEST_IR_RECV_PIN GPIO_NUM_23
322327
#define TEST_IR_VCC_TEST GPIO_NUM_18
323328
#define TEST_IR_GND GPIO_NUM_26 // TODO - also VanBus ANALYSER_PIN
329+
#endif
324330
#else
325331
#define TEST_IR_RECV_PIN D7
326332
#define TEST_IR_VCC_TEST D5

VanLiveConnect/VanLiveConnect.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ void SetupVanReceiver()
174174
VanBusRx.SetDropPolicy(VAN_PACKET_QUEUE_SIZE * 8 / 10, &IsVeryImportantPacket);
175175
#endif
176176

177-
// Define these as #defines so that the Serial.printf_P below shows the correct pin name on the console
177+
// Use #defines, not const int, so that the Serial.printf_P below shows the correct pin name on the console.
178178
#ifdef ARDUINO_ARCH_ESP32
179179
#ifdef CONFIG_IDF_TARGET_ESP32S2
180180
#define TX_PIN GPIO_NUM_18 // GPIO pin connected to VAN bus transceiver input

VanLiveConnect/Wifi.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,5 +297,5 @@ void WifiCheckStatus()
297297
{
298298
Serial.print(F("Wi-Fi DISconnected!\n"));
299299
} // if
300-
#endif // WIFI_AP_MODE
300+
#endif // WIFI_AP_MODE
301301
} // WifiCheckStatus

0 commit comments

Comments
 (0)