From 79f77ba66787d48becda9eea40fa81189d78592f Mon Sep 17 00:00:00 2001 From: "@CarlWachter" Date: Fri, 8 Mar 2024 13:59:40 +0100 Subject: [PATCH] Fixed Thermo task includes --- App/Inc/tasks/thermo.hpp | 3 +++ App/Src/tasks/thermo.cpp | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/App/Inc/tasks/thermo.hpp b/App/Inc/tasks/thermo.hpp index 5cda223..98e3223 100644 --- a/App/Inc/tasks/thermo.hpp +++ b/App/Inc/tasks/thermo.hpp @@ -10,6 +10,9 @@ #include #include +#include +#include +#include #include #include diff --git a/App/Src/tasks/thermo.cpp b/App/Src/tasks/thermo.cpp index dfee80c..4c855a9 100644 --- a/App/Src/tasks/thermo.cpp +++ b/App/Src/tasks/thermo.cpp @@ -28,10 +28,10 @@ namespace demo void ThermoTask::init() { mutex = new sta::RtosMutex("spi2"); - spi2 = new sta::STM32SPI(&hspi2, 16000000, &mutex); + spi2 = new sta::STM32SPI(&hspi2, 16000000, mutex); device_ = new sta::STM32SPIDevice(spi2, &cs_pin); - tc = new sta::MAX31855(&device_); //create driver object + tc = new sta::MAX31855(device_); //create driver object } void ThermoTask::func()