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();