mirror of
https://github.com/markqvist/RNode_Firmware.git
synced 2025-12-15 08:29:15 -05:00
Added ability to set custom display address
This commit is contained in:
parent
948798cd3e
commit
2536c26f50
6 changed files with 37 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue