From 1045cec9b13d079102c92488854c74b1aa0d66c9 Mon Sep 17 00:00:00 2001 From: maniacbug Date: Sun, 24 Apr 2011 12:56:43 -0700 Subject: [PATCH] Now sets spi data mode before interacting with the chip. needed to interoperate with other spi devices --- RF24.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/RF24.cpp b/RF24.cpp index 91b5a2b..0d5e99e 100644 --- a/RF24.cpp +++ b/RF24.cpp @@ -22,6 +22,7 @@ void RF24::csn(int mode) { + SPI.setDataMode(SPI_MODE0); digitalWrite(csn_pin,mode); }