Add pullup error test to define
This commit is contained in:
parent
5d29c4fab2
commit
c06ec9d05b
|
|
@ -299,9 +299,11 @@ ISR(TIMER1_COMPA_vect) {
|
||||||
if (sp < SP_min) SP_min = sp;
|
if (sp < SP_min) SP_min = sp;
|
||||||
#endif //DEBUG_STACK_MONITOR
|
#endif //DEBUG_STACK_MONITOR
|
||||||
|
|
||||||
|
#ifdef DEBUG_PULLUP_CRASH
|
||||||
// check for faulty pull-ups enabled on thermistor inputs
|
// check for faulty pull-ups enabled on thermistor inputs
|
||||||
if (PORTF & 0x5F)
|
if (PORTF & 0x5F)
|
||||||
pullup_error(false);
|
pullup_error(false);
|
||||||
|
#endif // DEBUG_PULLUP_CRASH
|
||||||
|
|
||||||
#ifdef LIN_ADVANCE
|
#ifdef LIN_ADVANCE
|
||||||
advance_isr_scheduler();
|
advance_isr_scheduler();
|
||||||
|
|
|
||||||
|
|
@ -1683,9 +1683,11 @@ void adc_ready(void) //callback from adc when sampling finished
|
||||||
|
|
||||||
FORCE_INLINE static void temperature_isr()
|
FORCE_INLINE static void temperature_isr()
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_PULLUP_CRASH
|
||||||
// check for faulty pull-ups enabled on thermistor inputs
|
// check for faulty pull-ups enabled on thermistor inputs
|
||||||
if (PORTF & 0x5F)
|
if (PORTF & 0x5F)
|
||||||
pullup_error(true);
|
pullup_error(true);
|
||||||
|
#endif // DEBUG_PULLUP_CRASH
|
||||||
|
|
||||||
|
|
||||||
if (!temp_meas_ready) adc_cycle();
|
if (!temp_meas_ready) adc_cycle();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue