Now sets spi data mode before interacting with the chip. needed to interoperate with other spi devices
This commit is contained in:
parent
0668494aee
commit
1045cec9b1
1 changed files with 1 additions and 0 deletions
1
RF24.cpp
1
RF24.cpp
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
void RF24::csn(int mode)
|
void RF24::csn(int mode)
|
||||||
{
|
{
|
||||||
|
SPI.setDataMode(SPI_MODE0);
|
||||||
digitalWrite(csn_pin,mode);
|
digitalWrite(csn_pin,mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue