Remove CaptureThread LED control.

This commit is contained in:
Jared Boone 2016-05-02 12:51:52 -07:00
parent eeb4645242
commit 56a7b841cb

View file

@ -23,9 +23,6 @@
#include "portapack_shared_memory.hpp" #include "portapack_shared_memory.hpp"
#include "hackrf_gpio.hpp"
using namespace hackrf::one;
// StreamOutput /////////////////////////////////////////////////////////// // StreamOutput ///////////////////////////////////////////////////////////
class StreamOutput { class StreamOutput {
@ -85,12 +82,8 @@ CaptureThread::~CaptureThread() {
if( thread ) { if( thread ) {
chThdTerminate(thread); chThdTerminate(thread);
chEvtSignal(thread, EVT_MASK_CAPTURE_THREAD); chEvtSignal(thread, EVT_MASK_CAPTURE_THREAD);
const auto success = chThdWait(thread); chThdWait(thread);
thread = nullptr; thread = nullptr;
if( !success ) {
led_tx.on();
}
} }
} }