MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / flush

Method flush

libraries/AP_Param/AP_Param.cpp:1304–1312  ·  view source on GitHub ↗

wait for all parameters to save */

Source from the content-addressed store, hash-verified

1302 wait for all parameters to save
1303*/
1304void AP_Param::flush(void)
1305{
1306 uint16_t counter = 200; // 2 seconds max
1307 while (counter-- && save_queue.available()) {
1308 hal.scheduler->expect_delay_ms(10);
1309 hal.scheduler->delay(10);
1310 hal.scheduler->expect_delay_ms(0);
1311 }
1312}
1313
1314// Load the variable from EEPROM, if supported
1315//

Callers

nothing calls this directly

Calls 3

availableMethod · 0.45
expect_delay_msMethod · 0.45
delayMethod · 0.45

Tested by

no test coverage detected