declare rx_rate and tx_rate as uint16_t in sdr-transceiver.c
#include <arpa/inet.h>
volatile uint64_t *rx_data, *tx_data;
-volatile uint32_t *rx_freq, *rx_rate, *tx_freq, *tx_rate;
-volatile uint16_t *gpio, *rx_cntr, *tx_cntr;
+volatile uint32_t *rx_freq, *tx_freq;
+volatile uint16_t *gpio, *rx_rate, *rx_cntr, *tx_rate, *tx_cntr;
volatile uint8_t *rx_rst, *tx_rst;
int sock_thread[4] = {-1, -1, -1, -1};
@@ -85,12 +85,12 @@ int main(int argc, char *argv[])
rx_rst = ((uint8_t *)(cfg + 0));
rx_freq = ((uint32_t *)(cfg + 4));
- rx_rate = ((uint32_t *)(cfg + 8));
+ rx_rate = ((uint16_t *)(cfg + 8));
rx_cntr = ((uint16_t *)(sts + 0));
tx_rst = ((uint8_t *)(cfg + 1));
tx_freq = ((uint32_t *)(cfg + 12));
- tx_rate = ((uint32_t *)(cfg + 16));
+ tx_rate = ((uint16_t *)(cfg + 16));
tx_cntr = ((uint16_t *)(sts + 2));
/* set PTT pin to low */
