From 033cb10f173d5ac5c55ec27f0f3a21418544b227 Mon Sep 17 00:00:00 2001 From: Michael Votaw Date: Tue, 20 Aug 2024 20:08:53 -0500 Subject: [PATCH] Footswitches don't count if it's just using a different part of the same foot. --- src/TechCounts.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/TechCounts.cpp b/src/TechCounts.cpp index a238007148..1cabc00374 100644 --- a/src/TechCounts.cpp +++ b/src/TechCounts.cpp @@ -180,7 +180,10 @@ void TechCounts::CalculateTechCountsFromRows(const std::vector } // this same column was stepped on in the previous row, but not by the same foot ==> footswitch or sideswitch - if(previousColumns[c] != StepParity::NONE && previousColumns[c] != currentColumns[c]) + if(previousColumns[c] != StepParity::NONE + && previousColumns[c] != currentColumns[c] + && StepParity::OTHER_PART_OF_FOOT[previousColumns[c]] != currentColumns[c] + ) { // this is assuming only 4-panel single if(c == 0 || c == 3)