From b3db1e60dee3bb500916f71d2f8f9aa16fb49ec7 Mon Sep 17 00:00:00 2001 From: kurte Date: Sun, 1 Oct 2023 06:46:28 -0700 Subject: [PATCH] WiFiS3 - work with different variant --- boards.txt | 2 +- libraries/WiFiS3/src/Modem.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boards.txt b/boards.txt index 8cbe615f..73107a9c 100644 --- a/boards.txt +++ b/boards.txt @@ -179,7 +179,7 @@ unor4wifiusb.upload.tool.default=dfu-util unor4wifiusb.upload.protocol= unor4wifiusb.upload.transport= unor4wifiusb.upload.vid=0x2341 -unor4wifiusb.upload.pid=0x369 +unor4wifiusb.upload.pid=0x0369 unor4wifiusb.upload.address=0x00010000 unor4wifiusb.upload.interface=0 unor4wifiusb.upload.use_1200bps_touch=false diff --git a/libraries/WiFiS3/src/Modem.cpp b/libraries/WiFiS3/src/Modem.cpp index d4050adb..720fe06e 100644 --- a/libraries/WiFiS3/src/Modem.cpp +++ b/libraries/WiFiS3/src/Modem.cpp @@ -289,7 +289,7 @@ bool ModemClass::buf_read(const string &prompt, string &data_res) { return res; } -#ifdef ARDUINO_UNOWIFIR4 +#if defined(ARDUINO_UNOWIFIR4) || defined(ARDUINO_UNOWIFIR4USB) ModemClass modem = ModemClass(&Serial2); #else ModemClass modem = ModemClass(D24,D25);