From 5b27e6b6923b736d0e77df92a72d9bf20c939808 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Wed, 18 May 2022 19:56:12 +0200 Subject: [PATCH] Ensure proper termination of baseband sampling when M17Demodulator::terminate() is called. Solves #74. --- openrtx/src/protocols/M17/M17Demodulator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openrtx/src/protocols/M17/M17Demodulator.cpp b/openrtx/src/protocols/M17/M17Demodulator.cpp index e4086017..72b199ae 100644 --- a/openrtx/src/protocols/M17/M17Demodulator.cpp +++ b/openrtx/src/protocols/M17/M17Demodulator.cpp @@ -136,6 +136,9 @@ void M17Demodulator::init() void M17Demodulator::terminate() { + // Ensure proper termination of baseband sampling + inputStream_stop(basebandId); + // Delete the buffers and deallocate memory. delete[] baseband_buffer; delete activeFrame;