Suggestions for the Arduino Project
(Read 934 times)
"When I hear of Schrödinger's cat, I reach for my gun " (Stephen Hawking)
Apr 09, 2012, 03:32 am
: Apr 09, 2012, 03:38 am by TheNorm
I'm not sure where this should go but I'm sure it's a bug.
is documented as taking either char or byte but when used with an SD File object you have to cast it to char. Hell it's called
. Perversely enough an eithernet client wants bytes.
This works but vice-versa fails
Aug 28, 2012, 11:43 pm
I noticed this too using the Serial.readBytes() function (which is inherited from the Stream library). I didn't want to use chars because I don't want 0xff == -1. I overloaded the Stream::readBytes() function in Stream.cpp and Stream.h to have a char * as well as a byte * version, and now it compiles happily using a byte array.