Skip to content

Commit

Permalink
fixing missing namespace qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
PBrunot committed Feb 12, 2024
1 parent 2d944ac commit da3444e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions test/test_logic/test_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace fablabbg::tests
/// @param duration_tap duration of the tap. pass milliseconds::max() to keep the card in the field
/// @return
BoardLogic::Status simulate_rfid_card(RFIDWrapper<MockMrfc522> &rfid, BoardLogic &logic, std::optional<card::uid_t> uid,
std::optional<milliseconds> duration_tap)
std::optional<std::chrono::milliseconds> duration_tap)
{
constexpr auto DEFAULT_CYCLES = 3;
MockMrfc522 &driver = rfid.getDriver();
Expand All @@ -30,12 +30,12 @@ namespace fablabbg::tests
{
driver.setUid(uid.value(), duration_tap);
TEST_ASSERT_TRUE_MESSAGE(uid == rfid.getUid(), "Card UID not equal");
auto start = system_clock::now();
auto start = std::chrono::system_clock::now();
do
{
logic.checkRfid();
delay(50);
} while (duration_tap.has_value() && system_clock::now() - start < duration_tap);
} while (duration_tap.has_value() && std::chrono::system_clock::now() - start < duration_tap);
}
return logic.getStatus();
}
Expand Down
2 changes: 1 addition & 1 deletion test/test_mqtt/test_mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ namespace fablabbg::tests
{
if (!initialized)
{
auto secs = duration_cast<seconds>(conf::tasks::WATCHDOG_TIMEOUT).count();
auto secs = std::chrono::duration_cast<std::chrono::seconds>(conf::tasks::WATCHDOG_TIMEOUT).count();
TEST_ASSERT_EQUAL_MESSAGE(ESP_OK, esp_task_wdt_init(secs, true), "taskEspWatchdog - esp_task_wdt_init failed");
ESP_LOGI(TAG3, "taskEspWatchdog - initialized %d seconds", secs);
TEST_ASSERT_EQUAL_MESSAGE(ESP_OK, esp_task_wdt_add(NULL), "taskEspWatchdog - esp_task_wdt_add failed");
Expand Down

0 comments on commit da3444e

Please sign in to comment.