Skip to content

Commit

Permalink
♻️ (activity): Increase rounds number & delay
Browse files Browse the repository at this point in the history
  • Loading branch information
HPezz committed Sep 20, 2022
1 parent f8a65ff commit 8d97d1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ActivityKit/include/activities/FlashNumberCounting.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class FlashNumberCounting : public interface::Activity
ReinforcerKit &_reinforcerkit;
interface::LED &_led;

static constexpr uint8_t kRoundsNumber = 5;
static constexpr uint8_t kRoundsNumber = 10;
static constexpr uint8_t kSizeOfColorsTable = 5;
static constexpr uint8_t kSizeOfFlashNumberTable = 12;

Expand Down
2 changes: 2 additions & 0 deletions libs/ActivityKit/source/activities/FlashNumberCounting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ void FlashNumberCounting::start()

_backup_callback = _rfidkit.getCallback();
std::shuffle(_flash_numbers.begin(), _flash_numbers.end(), std::mt19937(time(nullptr)));
rtos::ThisThread::sleep_for(2s);

launchNextRound();

_rfidkit.onTagActivated([this](const MagicCard &card) { processCard(card); });
Expand Down

0 comments on commit 8d97d1b

Please sign in to comment.