[X9D] The internal module must be powered!
This commit is contained in:
+2
-2
@@ -1060,8 +1060,8 @@ void menuModelSetup(uint8_t event)
|
||||
else if (m_posHorz==1) {
|
||||
s_editMode = 0;
|
||||
if (g_model.failsafeMode==FAILSAFE_CUSTOM && event==EVT_KEY_LONG(KEY_ENTER)) {
|
||||
for (int32_t i=g_model.ppmSCH; i<g_model.ppmSCH+NUM_PORT1_CHANNELS(g_model); i++) {
|
||||
g_model.failsafeChannels[i] = channelOutputs[i];
|
||||
for (int32_t i=0; i<16; i++) {
|
||||
g_model.failsafeChannels[i] = (i < NUM_PORT1_CHANNELS(g_model) ? channelOutputs[g_model.ppmSCH + i] : 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,6 +57,8 @@ extern uint16_t pxxStream[400] ;
|
||||
|
||||
void init_pxx()
|
||||
{
|
||||
INTERNAL_RF_ON();
|
||||
|
||||
// Timer1
|
||||
setupPulsesPXX() ; // TODO not here!
|
||||
|
||||
@@ -113,6 +115,7 @@ void disable_pxx()
|
||||
NVIC_DisableIRQ(TIM1_CC_IRQn) ;
|
||||
TIM1->DIER &= ~TIM_DIER_CC2IE ;
|
||||
TIM1->CR1 &= ~TIM_CR1_CEN ;
|
||||
INTERNAL_RF_OFF();
|
||||
}
|
||||
|
||||
// Robert@FrSky code
|
||||
|
||||
Reference in New Issue
Block a user