|
|
|
|
153
|
SERIAL_CHAR('|'); // Point out non test bytes
|
153
|
SERIAL_CHAR('|'); // Point out non test bytes
|
154
|
for (uint8_t i = 0; i < 16; i++) {
|
154
|
for (uint8_t i = 0; i < 16; i++) {
|
155
|
char ccc = (char)start_free_memory[i]; // cast to char before automatically casting to char on assignment, in case the compiler is broken
|
155
|
char ccc = (char)start_free_memory[i]; // cast to char before automatically casting to char on assignment, in case the compiler is broken
|
156
|
- if (&start_free_memory[i] >= (char*)queue.buffer && &start_free_memory[i] < (char*)queue.buffer + sizeof(queue.buffer)) { // Print out ASCII in the command buffer area
|
|
|
157
|
- if (!WITHIN(ccc, ' ', 0x7E)) ccc = ' ';
|
|
|
158
|
- }
|
|
|
159
|
- else { // If not in the command buffer area, flag bytes that don't match the test byte
|
|
|
160
|
- ccc = (ccc == TEST_BYTE) ? ' ' : '?';
|
|
|
161
|
- }
|
|
|
|
|
156
|
+ ccc = (ccc == TEST_BYTE) ? ' ' : '?';
|
162
|
SERIAL_CHAR(ccc);
|
157
|
SERIAL_CHAR(ccc);
|
163
|
}
|
158
|
}
|
164
|
SERIAL_EOL();
|
159
|
SERIAL_EOL();
|