Serial refactor. Default 8-bit ECHO to int, not char (#20985)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@ -926,7 +926,7 @@ int SdBaseFile::peek() {
|
||||
// print uint8_t with width 2
|
||||
static void print2u(const uint8_t v) {
|
||||
if (v < 10) SERIAL_CHAR('0');
|
||||
SERIAL_ECHO((int)v);
|
||||
SERIAL_ECHO(v);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -583,7 +583,7 @@ void CardReader::openFileRead(char * const path, const uint8_t subcall_type/*=0*
|
||||
|
||||
// Too deep? The firmware has to bail.
|
||||
if (file_subcall_ctr > SD_PROCEDURE_DEPTH - 1) {
|
||||
SERIAL_ERROR_MSG("Exceeded max SUBROUTINE depth:", int(SD_PROCEDURE_DEPTH));
|
||||
SERIAL_ERROR_MSG("Exceeded max SUBROUTINE depth:", SD_PROCEDURE_DEPTH);
|
||||
kill(GET_TEXT(MSG_KILL_SUBCALL_OVERFLOW));
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user