diff --git a/max31855.c b/max31855.c --- a/max31855.c +++ b/max31855.c @@ -1,9 +1,4 @@ -#include "stm32f0xx_hal.h" - -#include "config.h" -#include "stringhelpers.h" -#include "states.h" -#include "gpio.h" +#include "max31865.h" // Grab temperature reading from MAX31855 void max31855_readtemp(SPI_HandleTypeDef* hspi1, therm_settings_t* set, therm_status_t* status) @@ -31,8 +26,8 @@ void max31855_readtemp(SPI_HandleTypeDef status.temp = 0; status.temp_frac = 0; } */ - if(temp_pre & 0b001 && !set->val.ignore_tc_error) { - status->tc_errno = 1; + if(temp_pre & 0b001 && !set->val.ignore_error) { + status->error_code = 1; HAL_Delay(400); // FIXME: remove? status->state_resume = status->state; status->state = STATE_TC_ERROR;