GitHub #2, #26: Fix bug in TRIG_THRESH triggering