🐛 Fix M808 starting count

Reported by adcurtin on Discord
This commit is contained in:
Scott Lahteine 2022-11-14 02:26:31 -06:00
parent 847391cfc1
commit 30a885a7ef

View File

@ -42,7 +42,7 @@ void Repeat::add_marker(const uint32_t sdpos, const uint16_t count) {
SERIAL_ECHO_MSG("!Too many markers.");
else {
marker[index].sdpos = sdpos;
marker[index].counter = count ?: -1;
marker[index].counter = count ? count - 1 : -1;
index++;
DEBUG_ECHOLNPGM("Add Marker ", index, " at ", sdpos, " (", count, ")");
}