MCPcopy Create free account
hub / github.com/SmingHub/Sming / translateSpiffsError

Function translateSpiffsError

Sming/Libraries/Spiffs/src/Error.cpp:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95#undef XX
96
97int translateSpiffsError(int spiffs_error)
98{
99 switch(spiffs_error) {
100#define XX(err_spiffs, err_sys) \
101 case err_spiffs: \
102 return err_sys;
103 SPIFFS_ERROR_TRANSLATION_MAP(XX)
104#undef XX
105 default:
106 return Error::fromSystem(spiffs_error);
107 }
108}
109
110String spiffsErrorToStr(int err)
111{

Callers 15

tryMountMethod · 0.85
formatMethod · 0.85
checkMethod · 0.85
openMethod · 0.85
closeMethod · 0.85
eofMethod · 0.85
tellMethod · 0.85
ftruncateMethod · 0.85
flushMethod · 0.85
readMethod · 0.85
lseekMethod · 0.85
flushMetaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected