Add pullup error test to define

This commit is contained in:
Alex Voinea 2022-02-07 13:56:46 +01:00
parent 5d29c4fab2
commit c06ec9d05b
2 changed files with 4 additions and 0 deletions

View File

@ -299,9 +299,11 @@ ISR(TIMER1_COMPA_vect) {
if (sp < SP_min) SP_min = sp;
#endif //DEBUG_STACK_MONITOR
#ifdef DEBUG_PULLUP_CRASH
// check for faulty pull-ups enabled on thermistor inputs
if (PORTF & 0x5F)
pullup_error(false);
#endif // DEBUG_PULLUP_CRASH
#ifdef LIN_ADVANCE
advance_isr_scheduler();

View File

@ -1683,9 +1683,11 @@ void adc_ready(void) //callback from adc when sampling finished
FORCE_INLINE static void temperature_isr()
{
#ifdef DEBUG_PULLUP_CRASH
// check for faulty pull-ups enabled on thermistor inputs
if (PORTF & 0x5F)
pullup_error(true);
#endif // DEBUG_PULLUP_CRASH
if (!temp_meas_ready) adc_cycle();