Skip to content

Commit ee8bce8

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 2136fda commit ee8bce8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: api/HardwareSPI.h

+2
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)