Minor fixes #5

Merged
thomas merged 2 commits from rudi_s into main 2024-06-23 17:07:49 +02:00
3 changed files with 2 additions and 7 deletions

View file

@ -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)); payload_enc, 8, sizeof(payload_enc), &nsyms));
fec payload_fec = modcod_create_fec(rx->modcod); 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); fec_destroy(payload_fec);
if(res != LIQUID_OK) { if(res != LIQUID_OK) {

View file

@ -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) static result_t transmit(sdr_ctx_t *sdr, const float complex *samples, size_t len)
{ {
size_t to_transmit_rf = len * SDR_OVERSAMPLING; size_t to_transmit_rf = len * SDR_OVERSAMPLING;
@ -165,8 +163,6 @@ int main(int argc, char **argv)
bool on_air = true; bool on_air = true;
debug_fd = open("/tmp/dump.cf32", O_CREAT | O_WRONLY | O_TRUNC);
// ** Initialize ** // ** Initialize **
char devname[IFNAMSIZ] = "hamnet70"; char devname[IFNAMSIZ] = "hamnet70";
@ -368,8 +364,6 @@ int main(int argc, char **argv)
} }
} }
close(debug_fd);
// ** Cleanup ** // ** Cleanup **
layer1_tx_shutdown(&tx); layer1_tx_shutdown(&tx);

View file

@ -1,4 +1,5 @@
#include <stdio.h> #include <stdio.h>
#include <ctype.h>
#include <errno.h> #include <errno.h>
#include <time.h> #include <time.h>