mirror of
https://github.com/memtest86plus/memtest86plus
synced 2025-03-13 01:13:11 +03:00
Correct TTY to match the new temperature location on display
This commit is contained in:
parent
bd5d3e865f
commit
eae5dd2796
@ -184,8 +184,8 @@ void tty_send_region(int start_row, int start_col, int end_row, int end_col)
|
||||
}
|
||||
|
||||
// Replace degree symbol with '*' for tty to avoid a C437/VT100 translation table.
|
||||
if (row == 7 && col_len > 77 && (shadow_buffer[7][73].value & 0xFF) == 0xF8) {
|
||||
p[73] = 0x2A;
|
||||
if (row == 1 && (shadow_buffer[1][25].value & 0xFF) == 0xF8) {
|
||||
p[25] = 0x2A;
|
||||
}
|
||||
|
||||
// Send row to TTY
|
||||
|
@ -149,7 +149,8 @@ struct serial_port {
|
||||
|
||||
#define tty_partial_redraw() \
|
||||
tty_send_region(1, 34, 5, 79); \
|
||||
tty_send_region(7, 0, 8, 79);
|
||||
tty_send_region(7, 0, 8, 79); \
|
||||
if(enable_temperature) tty_send_region(1, 16, 1, 26);
|
||||
|
||||
#define tty_error_redraw() \
|
||||
tty_send_region(10, 0, 23, 79);
|
||||
|
Loading…
x
Reference in New Issue
Block a user