This commit is contained in:
midelic 2016-09-24 01:59:08 +03:00 committed by GitHub
parent 5937c73202
commit 6ddee709f7

View File

@ -386,7 +386,6 @@ void setup()
Mprotocol_serial_init(); // Configure serial and enable RX interrupt Mprotocol_serial_init(); // Configure serial and enable RX interrupt
#endif //ENABLE_SERIAL #endif //ENABLE_SERIAL
} }
Serial.begin(250000);
} }
// Main // Main
@ -502,7 +501,6 @@ if(mode_select==MODE_SERIAL && IS_RX_FLAG_on) // Serial mode and something has b
#ifdef ENABLE_PPM #ifdef ENABLE_PPM
if(mode_select!=MODE_SERIAL && IS_PPM_FLAG_on) // PPM mode and a full frame has been received if(mode_select!=MODE_SERIAL && IS_PPM_FLAG_on) // PPM mode and a full frame has been received
{ {
Serial.println("start");
for(uint8_t i=0;i<NUM_CHN;i++) for(uint8_t i=0;i<NUM_CHN;i++)
{ // update servo data without interrupts to prevent bad read in protocols { // update servo data without interrupts to prevent bad read in protocols
uint16_t temp_ppm ; uint16_t temp_ppm ;
@ -512,9 +510,6 @@ if(mode_select==MODE_SERIAL && IS_RX_FLAG_on) // Serial mode and something has b
if(temp_ppm<PPM_MIN_125) temp_ppm=PPM_MIN_125; if(temp_ppm<PPM_MIN_125) temp_ppm=PPM_MIN_125;
else if(temp_ppm>PPM_MAX_125) temp_ppm=PPM_MAX_125; else if(temp_ppm>PPM_MAX_125) temp_ppm=PPM_MAX_125;
Servo_data[i]= temp_ppm ; Servo_data[i]= temp_ppm ;
} }
update_aux_flags(); update_aux_flags();