Skip to content

Commit

Permalink
🐛 (AutonomousActivities): Add 2 seconds to avoid missing instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
YannLocatelli committed Aug 29, 2024
1 parent cdd6946 commit e923756
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libs/ActivityKit/source/activities/FlashNumberCounting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void FlashNumberCounting::processCard(const MagicCard &card)

if (card == _expected_tag_number) {
_reinforcerkit.playDefault();
rtos::ThisThread::sleep_for(5s);
rtos::ThisThread::sleep_for(7s);

++_current_round;

Expand Down
2 changes: 1 addition & 1 deletion libs/ActivityKit/source/activities/LedColorRecognition.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void LedColorRecognition::processCard(const MagicCard &card)

if (card == _current_color->card) {
_reinforcerkit.playDefault();
rtos::ThisThread::sleep_for(5s);
rtos::ThisThread::sleep_for(7s);
++_current_round;

if (_current_round == kRoundsNumber) {
Expand Down
2 changes: 1 addition & 1 deletion libs/ActivityKit/source/activities/LedNumberCounting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ void LedNumberCounting::processCard(const MagicCard &card)

if (card == _expected_tag_number) {
_reinforcerkit.playDefault();
rtos::ThisThread::sleep_for(5s);
rtos::ThisThread::sleep_for(7s);
++_current_round;

if (_current_round == kRoundsNumber) {
Expand Down
2 changes: 1 addition & 1 deletion libs/ActivityKit/source/activities/SuperSimon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void SuperSimon::processCard(const MagicCard &card)

if (_expected_color_index == _current_round) {
_reinforcerkit.playDefault();
rtos::ThisThread::sleep_for(5s);
rtos::ThisThread::sleep_for(7s);
_expected_color_index = 0;
++_current_round;

Expand Down

0 comments on commit e923756

Please sign in to comment.