Skip to content

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/SPI/SPI.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include <Arduino.h>
2525
#include <stdlib.h>
2626

27-
#define SPI_HAS_TRANSACTION
27+
#define SPI_HAS_TRANSACTION 1
2828

2929
// This defines are not representing the real Divider of the ESP8266
3030
// the Defines match to an AVR Arduino on 16MHz for better compatibility
@@ -63,6 +63,7 @@ class SPIClass {
6363
void beginTransaction(SPISettings settings);
6464
uint8_t transfer(uint8_t data);
6565
uint16_t transfer16(uint16_t data);
66+
void transfer(void * data, uint32_t size) { transferBytes((uint8_t*)data, (uint8_t*)data, size); data -= size; };
6667
void write(uint8_t data);
6768
void write16(uint16_t data);
6869
void write16(uint16_t data, bool msb);

0 commit comments

Comments
 (0)