Remove unused variable debug_fd

This commit is contained in:
Simon Ruderich 2024-06-23 07:46:54 +02:00
parent 1840b3099c
commit d54cd8a9a8

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);