From 191942d48f48b122a0966b207df658192e5f4c30 Mon Sep 17 00:00:00 2001 From: Martin Brodbeck Date: Thu, 5 Jan 2023 10:06:27 +0100 Subject: [PATCH] Get rid of some compiler warnings. --- src/utils.cpp | 4 ++-- src/utils.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils.cpp b/src/utils.cpp index 9311ff3..ae50201 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -66,7 +66,7 @@ std::vector parseCsv(const std::string &csv) { while (getline(stream, line)) { auto tokenVec = split(line, ";"); - for (int i = 0; i < tokenVec.size(); i++) { + for (unsigned i = 0; i < tokenVec.size(); i++) { string token = tokenVec.at(i); if (token.length() == 0) @@ -182,7 +182,7 @@ void wifi_enable() { } void wifi_disable() { - + cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0); cyw43_wifi_leave(&cyw43_state, CYW43_ITF_STA); } \ No newline at end of file diff --git a/src/utils.h b/src/utils.h index 2c54569..dbcb4d2 100644 --- a/src/utils.h +++ b/src/utils.h @@ -21,8 +21,8 @@ struct WasteDate { std::vector parseCsv(const std::string &csv); -static int wifi_setup(uint32_t country, const std::string &ssid, const std::string &pw, - bool firstTry = true); +int wifi_setup(uint32_t country, const std::string &ssid, const std::string &pw, + bool firstTry = true); void wifi_enable(); void wifi_disable();