Skip to content

Commit

Permalink
🐛 (supersimon): Move increment before last round check
Browse files Browse the repository at this point in the history
  • Loading branch information
HPezz committed Sep 26, 2022
1 parent 78cbf1f commit 512b191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion libs/ActivityKit/include/activities/SuperSimon.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <optional>

#include "Color.h"
#include "Number.h"
#include "RFIDKit.h"
#include "ReinforcerKit.h"
#include "interface/Activity.h"
Expand Down
4 changes: 2 additions & 2 deletions libs/ActivityKit/source/activities/SuperSimon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ void SuperSimon::processCard(const MagicCard &card)
_reinforcerkit.playDefault();
rtos::ThisThread::sleep_for(1s);
_expected_color_index = 0;
++_current_round;

if (_current_round >= _last_round) {
if (_current_round == _last_round) {
_backup_callback(MagicCard::dice_roll);
return;
}

++_current_round;
launchNextRound();
return;
}
Expand Down

0 comments on commit 512b191

Please sign in to comment.