M17: change decode callsign x to space

pull/180/head
marco 2023-08-20 20:50:29 +02:00 zatwierdzone przez Silvano Seva
rodzic 278d7850c7
commit f40ecc60db
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -86,7 +86,7 @@ std::string M17::decode_callsign(const call_t& encodedCall)
* Address is not broadcast, decode it. * Address is not broadcast, decode it.
* TODO: current implementation works only on little endian architectures. * TODO: current implementation works only on little endian architectures.
*/ */
static const char charMap[] = "xABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-/."; static const char charMap[] = " ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-/.";
uint64_t encoded = 0; uint64_t encoded = 0;
auto p = reinterpret_cast<uint8_t*>(&encoded); auto p = reinterpret_cast<uint8_t*>(&encoded);