[X9D] The internal module must be powered!

This commit is contained in:
bsongis
2013-03-18 21:09:18 +00:00
parent 566291bc17
commit dfdca2dcfc
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -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);
}
}
}
+3
View File
@@ -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