/** %Print any SD error code. */ void SdFat::errorPrint() { if (!m_card.errorCode()) return; pstrPrint(PSTR("SD errorCode: 0X")); m_stdOut->print(m_card.errorCode(), HEX); pstrPrint(PSTR(",0X")); m_stdOut->println(m_card.errorData(), HEX); }
/** %Print any SD error code. */ void SdFat::errorPrint() { if (!card_.errorCode()) return; pstrPrint(PSTR("SD errorCode: 0X")); stdOut_->print(card_.errorCode(), HEX); pstrPrint(PSTR(",0X")); stdOut_->println(card_.errorData(), HEX); }
/** %Print msg, any SD error code. * * \param[in] msg Message in program space (flash memory) to print. */ void SdFat::errorPrint_P(PGM_P msg) { pstrPrint(PSTR("error: ")); pstrPrintln(msg); errorPrint(); }
/** %Print msg, any SD error code. * * \param[in] msg Message to print. */ void SdFat::errorPrint(char const* msg) { pstrPrint(PSTR("error: ")); m_stdOut->println(msg); errorPrint(); }
//------------------------------------------------------------------------------ static void pstrPrintln(PGM_P str) { pstrPrint(str); SdFat::stdOut()->println(); }