Skip to content

Instantly share code, notes, and snippets.

@triffid
Created September 10, 2022 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save triffid/bd72429605b810ca30e54ac8b26624a6 to your computer and use it in GitHub Desktop.
Save triffid/bd72429605b810ca30e54ac8b26624a6 to your computer and use it in GitHub Desktop.
##################### See Line 14 #################
#include <SD.h>
void setup() {
Serial.begin(9600);
while (!Serial) {
;
}
// ...init sd card...
SdFile sdElem;
if (!sdElem.open(sdElem, "test.txt", O_RDONLY)) {
Serial.println("error...");
}
int16_t c; // ############ <----------- change me to 'char' type to no longer trigger bug 105753
while((c = sdElem.read()) >=0) {
Serial.print(c);
}
}
void loop() {
// put your main code here, to run repeatedly:
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment