Get rid of some compiler warnings.
This commit is contained in:
parent
c4b83f1bff
commit
191942d48f
2 changed files with 4 additions and 4 deletions
|
@ -66,7 +66,7 @@ std::vector<WasteDate> parseCsv(const std::string &csv) {
|
||||||
while (getline(stream, line)) {
|
while (getline(stream, line)) {
|
||||||
auto tokenVec = split(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);
|
string token = tokenVec.at(i);
|
||||||
|
|
||||||
if (token.length() == 0)
|
if (token.length() == 0)
|
||||||
|
@ -182,7 +182,7 @@ void wifi_enable() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void wifi_disable() {
|
void wifi_disable() {
|
||||||
|
|
||||||
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0);
|
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0);
|
||||||
cyw43_wifi_leave(&cyw43_state, CYW43_ITF_STA);
|
cyw43_wifi_leave(&cyw43_state, CYW43_ITF_STA);
|
||||||
}
|
}
|
|
@ -21,8 +21,8 @@ struct WasteDate {
|
||||||
|
|
||||||
std::vector<WasteDate> parseCsv(const std::string &csv);
|
std::vector<WasteDate> parseCsv(const std::string &csv);
|
||||||
|
|
||||||
static int wifi_setup(uint32_t country, const std::string &ssid, const std::string &pw,
|
int wifi_setup(uint32_t country, const std::string &ssid, const std::string &pw,
|
||||||
bool firstTry = true);
|
bool firstTry = true);
|
||||||
void wifi_enable();
|
void wifi_enable();
|
||||||
|
|
||||||
void wifi_disable();
|
void wifi_disable();
|
||||||
|
|
Loading…
Reference in a new issue