Wrong comparison corrected

This commit is contained in:
phl0 2016-04-27 21:52:29 +02:00
parent 6fccc3af74
commit ab8dbadef5
No known key found for this signature in database
GPG key ID: 48EA1E640798CA9A

View file

@ -112,7 +112,7 @@ void CNextion::writeDStar(const char* my1, const char* my2, const char* your, co
if (strcmp(m_size.c_str(), "2.4") == 0) {
::sprintf(text, "t1.txt=\"%.8s\"", your);
sendCommand(text);
if (strcmp(reflector, " ") == 0) {
if (strcmp(reflector, " ") != 0) {
::sprintf(text, "t2.txt=\"via %.8s\"", reflector);
sendCommand(text);
}