Exemplo n.º 1
0
/** %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);
}
Exemplo n.º 2
0
/** %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);
}
Exemplo n.º 3
0
/** %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();
}
Exemplo n.º 4
0
/** %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();
}
Exemplo n.º 5
0
//------------------------------------------------------------------------------
static void pstrPrintln(PGM_P str) {
  pstrPrint(str);
  SdFat::stdOut()->println();
}