From 4080eb76f890ea21bb89b402c0b5b6b1b05b9428 Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 16 Jul 2020 18:08:30 +0200 Subject: devices: reset internal smart sample buffers upon stop They are too smart, they keep the timestamps. Change-Id: Idb4b8f03eb5ffdfd6d3fdbc137b20e3ddc4cfa65 --- Transceiver52M/device/ipc/IPCDevice.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Transceiver52M/device/ipc/IPCDevice.cpp') diff --git a/Transceiver52M/device/ipc/IPCDevice.cpp b/Transceiver52M/device/ipc/IPCDevice.cpp index 4a1f8b6..32a46e5 100644 --- a/Transceiver52M/device/ipc/IPCDevice.cpp +++ b/Transceiver52M/device/ipc/IPCDevice.cpp @@ -980,6 +980,10 @@ bool IPCDevice::stop() LOGC(DDEV, NOTICE) << "All channels stopped, terminating..."; + /* reset internal buffer timestamps */ + for (size_t i = 0; i < rx_buffers.size(); i++) + rx_buffers[i]->reset(); + started = false; return true; } -- cgit v1.2.3