From 184379869791eb283bc59a07f141dca41bff6a29 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Sat, 14 Jan 2012 10:18:13 -0800 Subject: [PATCH] Clarified the Increment for WP total --- ArduCopter/commands.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/commands.pde b/ArduCopter/commands.pde index 1561001d25..a5c3dd5f98 100644 --- a/ArduCopter/commands.pde +++ b/ArduCopter/commands.pde @@ -101,7 +101,7 @@ static void set_cmd_with_index(struct Location temp, int i) eeprom_write_dword((uint32_t *) mem, temp.lng); // Long is stored in decimal degrees * 10^7 // Make sure our WP_total - if(g.command_total <= i) + if(g.command_total < (i+1)) g.command_total.set_and_save(i+1); }