Added ability to set custom display address
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user