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()