kopia lustrzana https://github.com/SP8EBC/ParaTNC
bigfix: missing vbat s enable in MAX_ERROR state
rodzic
2f2cb1b11d
commit
0b3552ac37
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue