diff --git a/ArduCopter/commands.pde b/ArduCopter/commands.pde index ea8c5efff03..cc615e53826 100644 --- a/ArduCopter/commands.pde +++ b/ArduCopter/commands.pde @@ -3,7 +3,7 @@ static void init_commands() { // zero is home, but we always load the next command (1), in the code. - g.waypoint_index.set_and_save(0); + g.waypoint_index = 0; // This are registers for the current may and must commands // setting to zero will allow them to be written to by new commands diff --git a/ArduCopter/commands_process.pde b/ArduCopter/commands_process.pde index 76ef1c13e7c..89797c486eb 100644 --- a/ArduCopter/commands_process.pde +++ b/ArduCopter/commands_process.pde @@ -11,7 +11,7 @@ static void change_command(uint8_t index) } else { command_must_index = NO_COMMAND; next_command.id = NO_COMMAND; - g.waypoint_index.set_and_save(index - 1); + g.waypoint_index = index - 1; update_commands(); } }