mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-21 23:45:49 +08:00
Rework the Nextion laouts with the latest editor.
This commit is contained in:
19
Nextion.cpp
19
Nextion.cpp
@@ -195,18 +195,10 @@ void CNextion::writeFusionInt(const char* source, const char* dest, const char*
|
|||||||
::sprintf(text, "t0.txt=\"%s %.10s\"", type, source);
|
::sprintf(text, "t0.txt=\"%s %.10s\"", type, source);
|
||||||
sendCommand(text);
|
sendCommand(text);
|
||||||
|
|
||||||
if (m_size == "2.4" || m_size == "3.2") {
|
::sprintf(text, "t1.txt=\"%.10s\"", dest);
|
||||||
::sprintf(text, "t1.txt=\"%.10s\"", dest);
|
sendCommand(text);
|
||||||
sendCommand(text);
|
if (::strcmp(origin, " ") != 0) {
|
||||||
if (::strcmp(origin, " ") != 0) {
|
::sprintf(text, "t2.txt=\"via %.10s\"", origin);
|
||||||
::sprintf(text, "t2.txt=\"via %.10s\"", origin);
|
|
||||||
sendCommand(text);
|
|
||||||
}
|
|
||||||
} else if (m_size == "3.5") {
|
|
||||||
if (::strcmp(origin, " ") == 0)
|
|
||||||
::sprintf(text, "t1.txt=\"%.10s\"", dest);
|
|
||||||
else
|
|
||||||
::sprintf(text, "t1.txt=\"%.10s <- %-10s\"", dest, origin);
|
|
||||||
sendCommand(text);
|
sendCommand(text);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -217,8 +209,7 @@ void CNextion::clearFusionInt()
|
|||||||
{
|
{
|
||||||
sendCommand("t0.txt=\"Listening\"");
|
sendCommand("t0.txt=\"Listening\"");
|
||||||
sendCommand("t1.txt=\"\"");
|
sendCommand("t1.txt=\"\"");
|
||||||
if (m_size == "2.4" || m_size == "3.2")
|
sendCommand("t2.txt=\"\"");
|
||||||
sendCommand("t2.txt=\"\"");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CNextion::close()
|
void CNextion::close()
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user