Fix Failsafe compilation

This commit is contained in:
pascallanger 2019-10-25 21:35:25 +02:00
parent 63e6590b65
commit b156f66146

View File

@ -679,7 +679,9 @@ uint8_t Update_All()
Channel_data[i]=val;
}
PPM_FLAG_off; // wait for next frame before update
PPM_failsafe();
#ifdef FAILSAFE_ENABLE
PPM_failsafe();
#endif
update_channels_aux();
INPUT_SIGNAL_on; // valid signal received
last_signal=millis();
@ -721,7 +723,7 @@ uint8_t Update_All()
return 0;
}
#ifdef ENABLE_PPM
#if defined(FAILSAFE_ENABLE) && defined(ENABLE_PPM)
void PPM_failsafe()
{
static uint8_t counter=0;