Skip to content

Commit a029d61

Browse files
committed
Merge branch 'master' of github.com:adafruit/ArduinoCore-samd
2 parents fad2d91 + 6a59e83 commit a029d61

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

cores/arduino/TinyUSB/Adafruit_TinyUSB_SAMD.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ void Adafruit_TinyUSB_Core_init(void)
7777
serial1_printf("TinyUSB debugging with Serial1\n");
7878
#endif
7979

80-
USBDevice.addInterface( (Adafruit_USBD_Interface&) Serial);
80+
Serial.setStringDescriptor("TinyUSB Serial");
81+
USBDevice.addInterface(Serial);
8182
USBDevice.setID(USB_VID, USB_PID);
8283
USBDevice.begin();
8384

libraries/SPI/SPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ void SPIClass::dmaCallback(Adafruit_ZeroDMA *dma) {
260260
// to the read channel to indicate end-of-transfer, and the write channel's
261261
// callback is assigned to this nonsense function (for reasons I'm not
262262
// entirely sure of, setting the callback to NULL doesn't work).
263-
static void dmaDoNothingCallback(Adafruit_ZeroDMA *dma) { }
263+
static void dmaDoNothingCallback(Adafruit_ZeroDMA *dma) { (void)dma; }
264264

265265
// This could've gone in begin(), but for the sake of organization...
266266
void SPIClass::dmaAllocate(void) {

0 commit comments

Comments
 (0)