From 21db442fe92da733cc1776f91ba82a3e05d18fac Mon Sep 17 00:00:00 2001 From: Tom Early Date: Wed, 22 Dec 2021 10:49:55 -0700 Subject: [PATCH] fixed startup bug --- DV3003.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DV3003.cpp b/DV3003.cpp index c9c24ad..c1e4e29 100644 --- a/DV3003.cpp +++ b/DV3003.cpp @@ -257,6 +257,7 @@ bool CDV3003::InitDV3003() void CDV3003::Start() { + keep_running = true; feedFuture = std::async(std::launch::async, &CDV3003::FeedDevice, this); readFuture = std::async(std::launch::async, &CDV3003::ReadDevice, this); } @@ -376,7 +377,6 @@ bool CDV3003::GetResponse(SDV3003_Packet &packet) void CDV3003::FeedDevice() { - keep_running = true; uint8_t current_vocoder = 0; while (keep_running) {