Skip to content

Commit

Permalink
Fix unused/uninitialized variable warnings (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
luebbe authored Sep 29, 2023
1 parent 9db7585 commit eb78f13
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion src/Astronomy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Astronomy::MoonData Astronomy::calculateMoonData(uint16_t year, uint8_t month, u
} else month -= 2;

c = year / 100;
jd += 30.59 * month;
jd = 30.59 * month;
jd += 365.25 * year;
jd += day;
jd += c / 4 - c;
Expand Down
1 change: 0 additions & 1 deletion src/MetOfficeClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ void MetOfficeClient::doUpdate(String url) {
}
}

int pos = 0;
boolean isBody = false;
char c;

Expand Down
1 change: 0 additions & 1 deletion src/ThingspeakClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ void ThingspeakClient::getLastChannelItem(String channelId, String readApiKey) {
}
}

int pos = 0;
boolean isBody = false;
char c;

Expand Down
1 change: 0 additions & 1 deletion src/WorldClockClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ void WorldClockClient::updateTime() {
}
}

int pos = 0;
boolean isBody = false;
char c;
client.setNoDelay(false);
Expand Down

0 comments on commit eb78f13

Please sign in to comment.