Clarified the Increment for WP total

This commit is contained in:
Jason Short 2012-01-14 10:18:13 -08:00
parent f97d58c753
commit 1843798697

View File

@ -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);
}