1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00

fixing buffer overflow

This commit is contained in:
cTn 2013-12-05 11:03:29 +01:00
parent 26a969b2cf
commit ae6d902b88

View file

@ -84,12 +84,13 @@ function tab_initialize_initial_setup() {
// During this period MCU won't be able to process any serial commands because its locked in a for/while loop
// until this operation finishes, sending more commands through data_poll() will result in serial buffer overflow
// which will in turn result in MSP CRC error (don't be alarmed)
GUI.interval_pause('initial_setup_data_pull');
send_message(MSP_codes.MSP_ACC_CALIBRATION, MSP_codes.MSP_ACC_CALIBRATION);
GUI.timeout_add('button_reset', function() {
GUI.interval_resume('initial_setup_data_pull');
self.removeClass('calibrating');
}, 1000);
}, 2000);
}
});