Skip to content

Commit 07d61ea

Browse files
authored
Merge pull request #583 from facchinm/fix_warnings
Fix all warnings
2 parents 182a28a + a0fcb66 commit 07d61ea

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

cores/arduino/Arduino.h

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ extern "C"{
3131
#endif // __cplusplus
3232

3333
// Include Atmel headers
34+
#undef LITTLE_ENDIAN
3435
#include <samd.h>
3536

3637
#define clockCyclesPerMicrosecond() ( SystemCoreClock / 1000000L )

cores/arduino/USB/USBCore.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ bool USBDeviceClass::sendDescriptor(USBSetup &setup)
230230
else if (setup.wValueL == ISERIAL) {
231231
char name[ISERIAL_MAX_LEN];
232232
memset(name, 0, sizeof(name));
233-
uint8_t idx = 0;
234233
#ifdef PLUGGABLE_USB_ENABLED
235234
PluggableUSB().getShortName(name);
236235
return sendStringDescriptor((uint8_t*)name, setup.wLength);

cores/arduino/USB/samd21_host.c

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
#include "variant.h"
2626
#include "USB_host.h"
2727
#include "samd21_host.h"
28-
#include "sam.h"
2928
#include "wiring_private.h"
3029

3130
#define HOST_DEFINED

libraries/SPI/SPI.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
// - endTransaction()
2929
// - usingInterrupt()
3030
// - SPISetting(clock, bitOrder, dataMode)
31-
#define SPI_HAS_TRANSACTION 1
31+
// #define SPI_HAS_TRANSACTION 1
32+
// Every core implementing arduino API has SPI transaction
3233

3334
// SPI_HAS_NOTUSINGINTERRUPT means that SPI has notUsingInterrupt() method
3435
#define SPI_HAS_NOTUSINGINTERRUPT 1

0 commit comments

Comments
 (0)