mirror of
https://git.mirrors.martin98.com/https://github.com/luc-github/ESP3D.git
synced 2025-08-01 01:14:01 +08:00
23 lines
553 B
C++
23 lines
553 B
C++
// Print a list of error codes, symbols, and comments.
|
|
#include "SdFat.h"
|
|
|
|
using namespace sdfat;
|
|
|
|
void setup() {
|
|
Serial.begin(9600);
|
|
while (!Serial) {}
|
|
delay(1000);
|
|
Serial.println();
|
|
Serial.println(F("Code,Symbol - failed operation"));
|
|
for (uint8_t code = 0; code <= SD_CARD_ERROR_UNKNOWN; code++) {
|
|
Serial.print(code < 16 ? "0X0" : "0X");
|
|
Serial.print(code, HEX);
|
|
Serial.print(",");
|
|
printSdErrorSymbol(&Serial, code);
|
|
Serial.print(" - ");
|
|
printSdErrorText(&Serial, code);
|
|
Serial.println();
|
|
}
|
|
}
|
|
void loop() {}
|