From 0c433350da5514ebec7791d050fcfaf0c9c9848f Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 9 Jan 2023 20:13:05 +0100 Subject: [PATCH] radio interface: fix init 5561f1129d0bed0ebd2a49fde07e8ee91e487fd6 introduced some changes, but while RadioInterface lost its call to close() that was previously used to improperly reset the buffers upon init() that call was accidentally not removed for RadioInterfaceMulti and RadioInterfaceResamp, so those reset previously initialized values to 0 during init(), which break osmo-trx for weird setups. Change-Id: I74fc1586f8ae0832f4093ba8a44a1c70c78ec3d8 --- Transceiver52M/radioInterfaceMulti.cpp | 2 -- Transceiver52M/radioInterfaceResamp.cpp | 2 -- 2 files changed, 4 deletions(-) diff --git a/Transceiver52M/radioInterfaceMulti.cpp b/Transceiver52M/radioInterfaceMulti.cpp index eeb0c979..a7195b40 100644 --- a/Transceiver52M/radioInterfaceMulti.cpp +++ b/Transceiver52M/radioInterfaceMulti.cpp @@ -153,8 +153,6 @@ bool RadioInterfaceMulti::init(int type) return false; } - close(); - convertSendBuffer.resize(1); convertRecvBuffer.resize(1); diff --git a/Transceiver52M/radioInterfaceResamp.cpp b/Transceiver52M/radioInterfaceResamp.cpp index 37167ae3..869acd0b 100644 --- a/Transceiver52M/radioInterfaceResamp.cpp +++ b/Transceiver52M/radioInterfaceResamp.cpp @@ -98,8 +98,6 @@ bool RadioInterfaceResamp::init(int type) { float cutoff = 1.0f; - close(); - switch (type) { case RadioDevice::RESAMP_64M: resamp_inrate = RESAMP_64M_INRATE;