Update WiresX.cpp

During WiresX mode Search, the reflector name should be Upper Case - this only matters during search - the normal display of the data can be mixed case.
This commit is contained in:
MW0MWZ 2025-05-13 19:24:15 +01:00 committed by GitHub
parent c3580fdcd3
commit 41edfe53c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -27,6 +27,7 @@
#include <cstdio> #include <cstdio>
#include <cassert> #include <cassert>
#include <cstdlib> #include <cstdlib>
#include <cctype>
const unsigned char DX_REQ[] = {0x5DU, 0x71U, 0x5FU}; const unsigned char DX_REQ[] = {0x5DU, 0x71U, 0x5FU};
const unsigned char CONN_REQ[] = {0x5DU, 0x23U, 0x5FU}; const unsigned char CONN_REQ[] = {0x5DU, 0x23U, 0x5FU};
@ -945,7 +946,7 @@ void CWiresX::sendSearchReply()
data[i + offset + 1U] = refl->m_id.at(i); data[i + offset + 1U] = refl->m_id.at(i);
for (unsigned int i = 0U; i < 16U; i++) for (unsigned int i = 0U; i < 16U; i++)
data[i + offset + 6U] = refl->m_name.at(i); data[i + offset + 6U] = std::toupper(refl->m_name.at(i));
for (unsigned int i = 0U; i < 3U; i++) for (unsigned int i = 0U; i < 3U; i++)
data[i + offset + 22U] = refl->m_count.at(i); data[i + offset + 22U] = refl->m_count.at(i);