byte data[0];
It's pretty stupid to declare an array that can hold 0 elements. It's even more stupid to then write more than 0 bytes to that array.
Mirf.getData((byte *) &data);
I'm pretty sure that that & doesn't belong there.
byte data[0];
It's pretty stupid to declare an array that can hold 0 elements. It's even more stupid to then write more than 0 bytes to that array.
Mirf.getData((byte *) &data);
I'm pretty sure that that & doesn't belong there.