Browse Source

Clarified the Increment for WP total

mission-4.1.18
Jason Short 13 years ago
parent
commit
1843798697
  1. 2
      ArduCopter/commands.pde

2
ArduCopter/commands.pde

@ -101,7 +101,7 @@ static void set_cmd_with_index(struct Location temp, int i) @@ -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);
}

Loading…
Cancel
Save