Timers: Fix sync mode 3 inverted condition

This commit is contained in:
Connor McLaughlin 2020-01-30 16:18:56 +10:00
parent 88936463d7
commit 0b7abf244e

View file

@ -259,7 +259,6 @@ void Timers::UpdateCountingEnabled(CounterState& cs)
switch (cs.mode.sync_mode) switch (cs.mode.sync_mode)
{ {
case SyncMode::PauseOnGate: case SyncMode::PauseOnGate:
case SyncMode::FreeRunOnGate:
cs.counting_enabled = !cs.gate; cs.counting_enabled = !cs.gate;
break; break;
@ -268,6 +267,7 @@ void Timers::UpdateCountingEnabled(CounterState& cs)
break; break;
case SyncMode::ResetAndRunOnGate: case SyncMode::ResetAndRunOnGate:
case SyncMode::FreeRunOnGate:
cs.counting_enabled = cs.gate; cs.counting_enabled = cs.gate;
break; break;
} }