Fixes SSID value error on APX TX

Values where left bit-shifted upon being entered by the user, so resulting SSID being transmitted was a different number.  This shifting was happening both on Source and Destination SSID values.
This commit is contained in:
euquiq 2020-09-28 17:54:27 -03:00
parent 98ba332cda
commit b22448de75
2 changed files with 3 additions and 2 deletions

View File

@ -82,6 +82,7 @@ private:
6,
SymField::SYMFIELD_ALPHANUM
};
NumberField num_ssid_dest {
{ 19 * 8, 2 * 16 },
2,

View File

@ -38,9 +38,9 @@ void make_aprs_frame(const char * src_address, const uint32_t src_ssid,
char address[14] = { 0 };
memcpy(&address[0], dest_address, 6);
address[6] = (dest_ssid & 15) << 1;
address[6] = (dest_ssid & 15);
memcpy(&address[7], src_address, 6);
address[13] = (src_ssid & 15) << 1;
address[13] = (src_ssid & 15);
frame.make_ui_frame(address, 0x03, protocol_id_t::NO_LAYER3, payload);
}