Minor fixes #5
|
@ -454,7 +454,7 @@ result_t layer1_rx_process(layer1_rx_t *rx, const float complex *samples, size_t
|
|||
payload_enc, 8, sizeof(payload_enc), &nsyms));
|
||||
|
||||
fec payload_fec = modcod_create_fec(rx->modcod);
|
||||
result_t res = fec_decode(payload_fec, rx->payload_len_bytes, payload_enc, payload);
|
||||
int res = fec_decode(payload_fec, rx->payload_len_bytes, payload_enc, payload);
|
||||
fec_destroy(payload_fec);
|
||||
|
||||
if(res != LIQUID_OK) {
|
||||
|
|
|
@ -126,8 +126,6 @@ void cb_rx(rx_evt_t evt, const struct layer1_rx_s *rx, uint8_t *packet_data, siz
|
|||
}
|
||||
|
||||
|
||||
static int debug_fd;
|
||||
|
||||
static result_t transmit(sdr_ctx_t *sdr, const float complex *samples, size_t len)
|
||||
{
|
||||
size_t to_transmit_rf = len * SDR_OVERSAMPLING;
|
||||
|
@ -165,8 +163,6 @@ int main(int argc, char **argv)
|
|||
|
||||
bool on_air = true;
|
||||
|
||||
debug_fd = open("/tmp/dump.cf32", O_CREAT | O_WRONLY | O_TRUNC);
|
||||
|
||||
// ** Initialize **
|
||||
|
||||
char devname[IFNAMSIZ] = "hamnet70";
|
||||
|
@ -368,8 +364,6 @@ int main(int argc, char **argv)
|
|||
}
|
||||
}
|
||||
|
||||
close(debug_fd);
|
||||
|
||||
// ** Cleanup **
|
||||
|
||||
layer1_tx_shutdown(&tx);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include <errno.h>
|
||||
#include <time.h>
|
||||
|
|
Loading…
Reference in a new issue