Skip to content

Commit 862fb23

Browse files
committed
Add SPI_HAS_TRANSACTION define
Modern Arduino cores require to implement beginTransaction, so we can always define SPI_HAS_TRANSACTION. Fixes adafruit/Adafruit-GFX-Library#242
1 parent b5afe53 commit 862fb23

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

api/HardwareSPI.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include <inttypes.h>
2323
#include "Stream.h"
2424

25+
#define SPI_HAS_TRANSACTION
26+
2527
namespace arduino {
2628

2729
typedef enum {

0 commit comments

Comments
 (0)