Your reset inside of gapTimer():
timerSwitchA = 0; // Resets
timerSwitchB = 0;
Happens inside of the for() loop. Did you mean for that?
Your reset inside of gapTimer():
timerSwitchA = 0; // Resets
timerSwitchB = 0;
Happens inside of the for() loop. Did you mean for that?