From 78b9b74d809b145c940cef4de99493e87c6be094 Mon Sep 17 00:00:00 2001 From: Rupert Carmichael <5050061-carmiker@users.noreply.gitlab.com> Date: Sat, 21 Sep 2024 23:21:38 -0400 Subject: [PATCH] jg: Fix up setting competition timer --- jg.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jg.cpp b/jg.cpp index 53c815f..18bec34 100644 --- a/jg.cpp +++ b/jg.cpp @@ -736,8 +736,11 @@ int jg_init(void) { /* DIP Switches only apply to competition boards for now, but if NSS is ever supported, the values will need to be set more intelligently. + In this case we remove 3 from the value because the value of 0 is + actually 3 minutes, and the setting value is set in a human-readable + form with the 3 minutes already added. */ - Bsnes::setDIPSwitches(settings_bsnes[CMPTN_TIMER].val & 0xff); + Bsnes::setDIPSwitches((settings_bsnes[CMPTN_TIMER].val & 0xff) - 3); return 1; }