File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ void SPIClass::usingInterrupt(int interruptNumber)
88
88
interruptMode = SPI_IMODE_GLOBAL;
89
89
else
90
90
{
91
- #ifdef USE_MALLOC_FOR_IRQ_MAP
91
+ #if USE_MALLOC_FOR_IRQ_MAP
92
92
if (irqMap == NULL ) {
93
93
irqMap = (uint8_t *)malloc (EXTERNAL_NUM_INTERRUPTS);
94
94
}
@@ -119,7 +119,7 @@ void SPIClass::notUsingInterrupt(int interruptNumber)
119
119
120
120
if (interruptMask_lo == 0 && interruptMask_hi == 0 ) {
121
121
interruptMode = SPI_IMODE_NONE;
122
- #ifdef USE_MALLOC_FOR_IRQ_MAP
122
+ #if USE_MALLOC_FOR_IRQ_MAP
123
123
free (irqMap);
124
124
irqMap = NULL ;
125
125
#endif
Original file line number Diff line number Diff line change 23
23
#include < Arduino.h>
24
24
25
25
#ifndef USE_MALLOC_FOR_IRQ_MAP
26
- #define USE_MALLOC_FOR_IRQ_MAP 1
26
+ #define USE_MALLOC_FOR_IRQ_MAP 0
27
27
#endif
28
28
29
29
// SPI_HAS_TRANSACTION means SPI has
You can’t perform that action at this time.
0 commit comments