mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-01-20 15:30:23 +01:00
Add code for 3.2" Nextion displays
This commit is contained in:
parent
ab8dbadef5
commit
9b28293542
|
|
@ -117,6 +117,12 @@ void CNextion::writeDStar(const char* my1, const char* my2, const char* your, co
|
|||
sendCommand(text);
|
||||
}
|
||||
} else if (strcmp(m_size.c_str(), "3.2") == 0) {
|
||||
::sprintf(text, "t1.txt=\"%.8s\"", your);
|
||||
sendCommand(text);
|
||||
if (strcmp(reflector, " ") != 0) {
|
||||
::sprintf(text, "t2.txt=\"via %.8s\"", reflector);
|
||||
sendCommand(text);
|
||||
}
|
||||
} else if (strcmp(m_size.c_str(), "3.5") == 0) {
|
||||
if (strcmp(reflector, " ") == 0) {
|
||||
::sprintf(text, "t1.txt=\"%.8s\"", your);
|
||||
|
|
@ -135,6 +141,8 @@ void CNextion::clearDStar()
|
|||
sendCommand("t1.txt=\"\"");
|
||||
if (strcmp(m_size.c_str(), "2.4") == 0) {
|
||||
sendCommand("t2.txt=\"\"");
|
||||
} else if (strcmp(m_size.c_str(), "3.2") == 0) {
|
||||
sendCommand("t2.txt=\"\"");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue