kiss_modem: only set USB TX buffer size on HWCDC builds

USBCDC (ARDUINO_USB_MODE=0, TinyUSB) has no setTxBufferSize, which broke
the Station G3 and Heltec Tracker V2 KISS builds.
This commit is contained in:
agessaman committed 2026-09-23 15:51:05 -07:00
1 parent 5527a26f9a
commit 5a6027d331
1 file changed
+3
+3
View File
@@ -113,7 +113,10 @@ void setup() {
delay(100);
#if defined(ESP32) && defined(ARDUINO_USB_CDC_ON_BOOT) && ARDUINO_USB_CDC_ON_BOOT
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);
#endif
#endif
modem = new KissModem(Serial, identity, rng, radio_driver, board, sensors);
#endif