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:
		@@ -84,16 +84,16 @@ static void debug_rw(const bool write, int &pos, const uint8_t *value, const siz
 | 
			
		||||
  PGM_P const rw_str = write ? PSTR("write") : PSTR("read");
 | 
			
		||||
  SERIAL_CHAR(' ');
 | 
			
		||||
  serialprintPGM(rw_str);
 | 
			
		||||
  SERIAL_ECHOLNPAIR("_data(", pos, ",", int(value), ",", int(size), ", ...)");
 | 
			
		||||
  SERIAL_ECHOLNPAIR("_data(", pos, ",", value, ",", size, ", ...)");
 | 
			
		||||
  if (total) {
 | 
			
		||||
    SERIAL_ECHOPGM(" f_");
 | 
			
		||||
    serialprintPGM(rw_str);
 | 
			
		||||
    SERIAL_ECHOPAIR("()=", int(s), "\n size=", int(size), "\n bytes_");
 | 
			
		||||
    SERIAL_ECHOPAIR("()=", s, "\n size=", size, "\n bytes_");
 | 
			
		||||
    serialprintPGM(write ? PSTR("written=") : PSTR("read="));
 | 
			
		||||
    SERIAL_ECHOLN(total);
 | 
			
		||||
  }
 | 
			
		||||
  else
 | 
			
		||||
    SERIAL_ECHOLNPAIR(" f_lseek()=", int(s));
 | 
			
		||||
    SERIAL_ECHOLNPAIR(" f_lseek()=", s);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// File function return codes for type FRESULT. This goes away soon, but
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user