mavlink: fixed store of parameter values to eeprom

setting parameters via mavlink only saves them in memory. We need to
use AP_Var::save_all() to save them permanently

git-svn-id: https://arducopter.googlecode.com/svn/trunk@1748 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
tridge60@gmail.com 2011-03-06 09:35:57 +00:00
parent a82434b00a
commit c07dccd77c
1 changed files with 2 additions and 12 deletions

View File

@ -239,21 +239,11 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
break;
case MAV_ACTION_STORAGE_READ:
//read_EEPROM_startup();
//read_EEPROM_airstart_critical();
//read_command_index();
//read_EEPROM_flight_modes();
AP_Var::load_all();
break;
case MAV_ACTION_STORAGE_WRITE:
//save_EEPROM_trims();
//save_EEPROM_waypoint_info();
//save_EEPROM_gains();
//save_command_index();
//save_pressure_data();
//save_EEPROM_radio_minmax();
//save_user_configs();
//save_EEPROM_flight_modes();
AP_Var::save_all();
break;
case MAV_ACTION_CALIBRATE_RC: break;