mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
fixing buffer overflow
This commit is contained in:
parent
26a969b2cf
commit
ae6d902b88
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue