From dd25fc9bf2241193fe4cd367c12a72d7264e67bd Mon Sep 17 00:00:00 2001 From: Nav Date: Sat, 4 Sep 2021 18:04:28 +0100 Subject: [PATCH] Tidying --- src/Insight/InsightWorker/Tasks/InsightWorkerTask.cpp | 1 + src/Insight/InsightWorker/Tasks/ReadTargetRegisters.hpp | 3 --- src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.hpp | 3 --- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Insight/InsightWorker/Tasks/InsightWorkerTask.cpp b/src/Insight/InsightWorker/Tasks/InsightWorkerTask.cpp index f6dae1bd..2e2f980e 100644 --- a/src/Insight/InsightWorker/Tasks/InsightWorkerTask.cpp +++ b/src/Insight/InsightWorker/Tasks/InsightWorkerTask.cpp @@ -12,6 +12,7 @@ void InsightWorkerTask::execute(TargetControllerConsole& targetControllerConsole } catch (std::exception& exception) { this->state = InsightWorkerTaskState::FAILED; + Logger::error("InsightWorker task failed - " + std::string(exception.what())); emit this->failed(QString::fromStdString(exception.what())); } } diff --git a/src/Insight/InsightWorker/Tasks/ReadTargetRegisters.hpp b/src/Insight/InsightWorker/Tasks/ReadTargetRegisters.hpp index 95f0e252..9a586835 100644 --- a/src/Insight/InsightWorker/Tasks/ReadTargetRegisters.hpp +++ b/src/Insight/InsightWorker/Tasks/ReadTargetRegisters.hpp @@ -1,8 +1,5 @@ #pragma once -#include -#include - #include "InsightWorkerTask.hpp" #include "src/Targets/TargetRegister.hpp" diff --git a/src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.hpp b/src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.hpp index 9e832d4f..88368e87 100644 --- a/src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.hpp +++ b/src/Insight/InsightWorker/Tasks/RefreshTargetPinStates.hpp @@ -1,8 +1,5 @@ #pragma once -#include -#include - #include "InsightWorkerTask.hpp" #include "src/Targets/TargetVariant.hpp" #include "src/Targets/TargetPinDescriptor.hpp"