Added ability to set custom display address

This commit is contained in:
Mark Qvist 2023-09-19 18:32:29 +02:00
parent 948798cd3e
commit 2536c26f50
6 changed files with 37 additions and 3 deletions

View file

@ -898,6 +898,21 @@ void serialCallback(uint8_t sbyte) {
di_conf_save(display_intensity);
}
#endif
} else if (command == CMD_DISP_ADDR) {
#if HAS_DISPLAY
if (sbyte == FESC) {
ESCAPE = true;
} else {
if (ESCAPE) {
if (sbyte == TFEND) sbyte = FEND;
if (sbyte == TFESC) sbyte = FESC;
ESCAPE = false;
}
display_addr = sbyte;
da_conf_save(display_addr);
}
#endif
}
}