Correct TTY to match the new temperature location on display

This commit is contained in:
Sam Demeulemeester 2022-04-14 03:41:35 +02:00 committed by Sam Demeulemeester
parent bd5d3e865f
commit eae5dd2796
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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);