From 8a81ebc4ff0a7892bd4476fbf50bc3148f2e40de Mon Sep 17 00:00:00 2001 From: Manolis Surligas Date: Wed, 11 May 2016 14:25:16 +0300 Subject: [PATCH] Fix frame length bug at UPSAT FSK transmitter The frame length field was set in number of bits instead of number of bytes, only when the transmitter was configured in AX.25 mode. --- lib/upsat_fsk_frame_encoder_impl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/upsat_fsk_frame_encoder_impl.cc b/lib/upsat_fsk_frame_encoder_impl.cc index d9608b2..3adae23 100644 --- a/lib/upsat_fsk_frame_encoder_impl.cc +++ b/lib/upsat_fsk_frame_encoder_impl.cc @@ -334,7 +334,7 @@ namespace gr * the address field (if exists) and the payload. Length and CRC fields * are NOT included. */ - d_pdu[d_preamble_len + d_sync_word_len] = (uint8_t) encoded_len; + d_pdu[d_preamble_len + d_sync_word_len] = (uint8_t) encoded_len/8; /* If it is necessary calculate and append the CRC */ if (d_append_crc) {