bigfix: missing vbat s enable in MAX_ERROR state

tatry_variant
Mateusz Lubecki 2022-12-30 17:05:58 +01:00
rodzic 2f2cb1b11d
commit 0b3552ac37
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -8,7 +8,7 @@
#include "config_data.h"
#define SW_VER "ZT17"
#define SW_DATE "29122022"
#define SW_DATE "30122022"
#define SW_KISS_PROTO "A"
#define SYSTICK_TICKS_PER_SECONDS 100

Wyświetl plik

@ -330,6 +330,8 @@ void max31865_pool(void) {
// go back to idle in case of any error
max31865_current_state = MAX_IDLE;
io___cntrl_vbat_s_enable();
max31865_quality_factor = MAX_QF_NOT_AVALIABLE;
break;
@ -409,10 +411,11 @@ void max31865_pool(void) {
// MAX31865 is powered up and initialized but PT bias is disabled
// and no measurement is ongoing
if (max31865_shutdown_ticks++ > MAX31865_INTERVAL) {
io___cntrl_vbat_s_enable();
max31865_current_state = MAX_IDLE; //
io___cntrl_vbat_s_enable();
max31865_shutdown_ticks = 0;
}