Skip to content

Commit

Permalink
jg: Fix up setting competition timer
Browse files Browse the repository at this point in the history
  • Loading branch information
carmiker committed Sep 22, 2024
1 parent c7f025a commit 78b9b74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 78b9b74

Please sign in to comment.