Skip to content

Commit

Permalink
Fixed format strings
Browse files Browse the repository at this point in the history
  • Loading branch information
PBrunot committed May 25, 2024
1 parent be51fc9 commit 9b68943
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/FabBackend.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace fabomatic

bool online{false};
bool answer_pending{false};
int32_t channel{-1};
int16_t channel{-1};

auto messageReceived(String &topic, String &payload) -> void;

Expand Down
2 changes: 1 addition & 1 deletion src/BoardLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ namespace fabomatic
const auto response = auth.tryLogin(uid, server);
if (!response.has_value() || response.value().user_level == FabUser::UserLevel::Unknown)
{
ESP_LOGI(TAG, "Failed login for %s", card::uid_str(uid));
ESP_LOGI(TAG, "Failed login for %s", card::uid_str(uid).c_str());
changeStatus(Status::LoginDenied);
beepFail();
return false;
Expand Down
2 changes: 1 addition & 1 deletion src/Led.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace fabomatic
return;
}

ESP_LOGD(TAG, "Initializing LED (pin %d, is_neopixel %d, flags %u)",
ESP_LOGD(TAG, "Initializing LED (pin %d, is_neopixel %d, flags %lu)",
pins.led.pin, pins.led.is_neopixel, pins.led.neopixel_config);

if constexpr (pins.led.is_neopixel)
Expand Down
2 changes: 1 addition & 1 deletion src/Tasks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace fabomatic::Tasks
avg_delay /= nb_runs;
}

ESP_LOGD(TAG, "Scheduler::execute complete: %d tasks total, %lu runs, avg delay/run: %llu ms\r\n", tasks.size(), nb_runs, avg_delay.count());
ESP_LOGD(TAG, "Scheduler::execute complete: %d tasks total, %d runs, avg delay/run: %llu ms\r\n", tasks.size(), nb_runs, avg_delay.count());

for (const auto &task : tasks)
{
Expand Down

0 comments on commit 9b68943

Please sign in to comment.