Skip to content
Snippets Groups Projects
Commit e6ec80bb authored by Jason Short's avatar Jason Short
Browse files

Clarified the Increment for WP total

parent 6d0329b0
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment