You've defined done as having a value of true (1) or false (0).
Then giving it a totally value with
done = radio.read( data, sizeof(data) );
[code]
which is apparently at least 2 since you have data[0] and data[1]
I think you want to set done = true; after populating the array, and use a different variable to put the radio.read data into.
The code in Reply #4 compiles perfectly for me for an Uno on IDE 1.5.6
I suspect there may be something in the library that the newer version of the IDE objects to. Alas the Arduino folks don't seem to have heard of backwards compatibility.
It is easy to have several version of the IDE on your PC.
Robin2:
The code in Reply #4 compiles perfectly for me for an Uno on IDE 1.5.6
I suspect there may be something in the library that the newer version of the IDE objects to. Alas the Arduino folks don't seem to have heard of backwards compatibility.
It is easy to have several version of the IDE on your PC.
...R
Thank you all ultimately all i had to change my nrf library cause the one i had download is full of bugs i issues a new copy of that now its is compiling successfully.
Thank you all.