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 "hackrf_gpio.hpp"
using namespace hackrf::one;
// StreamOutput ///////////////////////////////////////////////////////////
class StreamOutput {
@ -85,12 +82,8 @@ CaptureThread::~CaptureThread() {
if( thread ) {
chThdTerminate(thread);
chEvtSignal(thread, EVT_MASK_CAPTURE_THREAD);
const auto success = chThdWait(thread);
chThdWait(thread);
thread = nullptr;
if( !success ) {
led_tx.on();
}
}
}