Simple but effective switch-to-equal-state detection