Merge upstream changes from Marlin 2.1.2.2
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
|
||||
#define TEST_BYTE ((char) 0xE5)
|
||||
|
||||
#if EITHER(__AVR__, IS_32BIT_TEENSY)
|
||||
#if ANY(__AVR__, IS_32BIT_TEENSY)
|
||||
|
||||
extern char __bss_end;
|
||||
char *end_bss = &__bss_end,
|
||||
@@ -163,14 +163,14 @@ inline int32_t count_test_bytes(const char * const start_free_memory) {
|
||||
while (start_free_memory < end_free_memory) {
|
||||
print_hex_address(start_free_memory); // Print the address
|
||||
SERIAL_CHAR(':');
|
||||
LOOP_L_N(i, 16) { // and 16 data bytes
|
||||
for (uint8_t i = 0; i < 16; ++i) { // and 16 data bytes
|
||||
if (i == 8) SERIAL_CHAR('-');
|
||||
print_hex_byte(start_free_memory[i]);
|
||||
SERIAL_CHAR(' ');
|
||||
}
|
||||
serial_delay(25);
|
||||
SERIAL_CHAR('|'); // Point out non test bytes
|
||||
LOOP_L_N(i, 16) {
|
||||
for (uint8_t i = 0; i < 16; ++i) {
|
||||
char ccc = (char)start_free_memory[i]; // cast to char before automatically casting to char on assignment, in case the compiler is broken
|
||||
ccc = (ccc == TEST_BYTE) ? ' ' : '?';
|
||||
SERIAL_CHAR(ccc);
|
||||
|
Reference in New Issue
Block a user