mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 08:05:49 +08:00
C++ cleanups.
This commit is contained in:
@@ -109,14 +109,7 @@ void CNextion::writeDStar(const char* my1, const char* my2, const char* your, co
|
|||||||
::sprintf(text, "t0.txt=\"%s %.8s/%4.4s\"", type, my1, my2);
|
::sprintf(text, "t0.txt=\"%s %.8s/%4.4s\"", type, my1, my2);
|
||||||
sendCommand(text);
|
sendCommand(text);
|
||||||
|
|
||||||
if (m_size == "2.4") {
|
if (m_size == "2.4" || m_size == "3.2") {
|
||||||
::sprintf(text, "t1.txt=\"%.8s\"", your);
|
|
||||||
sendCommand(text);
|
|
||||||
if (::strcmp(reflector, " ") != 0) {
|
|
||||||
::sprintf(text, "t2.txt=\"via %.8s\"", reflector);
|
|
||||||
sendCommand(text);
|
|
||||||
}
|
|
||||||
} else if (m_size == "3.2") {
|
|
||||||
::sprintf(text, "t1.txt=\"%.8s\"", your);
|
::sprintf(text, "t1.txt=\"%.8s\"", your);
|
||||||
sendCommand(text);
|
sendCommand(text);
|
||||||
if (::strcmp(reflector, " ") != 0) {
|
if (::strcmp(reflector, " ") != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user