Now sets spi data mode before interacting with the chip. needed to interoperate with other spi devices

This commit is contained in:
maniacbug 2011-04-24 12:56:43 -07:00
parent 0668494aee
commit 1045cec9b1
1 changed files with 1 additions and 0 deletions

View File

@ -22,6 +22,7 @@
void RF24::csn(int mode)
{
SPI.setDataMode(SPI_MODE0);
digitalWrite(csn_pin,mode);
}