Merge pull request #3667 from Blake-Latchford/fix/kiss-modem-usbcdc-tx-buffer
Fix broken KISS modem build on 6 ESP32-S3 platforms
This commit is contained in:
commit
a36ab23469
1 file changed
+3
@@ -115,7 +115,10 @@ void setup() {
|
|||||||
delay(100);
|
delay(100);
|
||||||
#if defined(ESP32) && defined(ARDUINO_USB_CDC_ON_BOOT) && ARDUINO_USB_CDC_ON_BOOT
|
#if defined(ESP32) && defined(ARDUINO_USB_CDC_ON_BOOT) && ARDUINO_USB_CDC_ON_BOOT
|
||||||
Serial.setTxTimeoutMs(USB_TX_TIMEOUT_MS);
|
Serial.setTxTimeoutMs(USB_TX_TIMEOUT_MS);
|
||||||
|
#if defined(ARDUINO_USB_MODE) && ARDUINO_USB_MODE
|
||||||
|
// HWCDC only; TinyUSB's USBCDC TX buffer is fixed at build time
|
||||||
Serial.setTxBufferSize(USB_TX_BUFFER_SIZE);
|
Serial.setTxBufferSize(USB_TX_BUFFER_SIZE);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
modem = new KissModem(Serial, identity, rng, radio_driver, board, sensors);
|
modem = new KissModem(Serial, identity, rng, radio_driver, board, sensors);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in new issue
Block a user