1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-30 06:33:51 +00:00

Compatibility with clang-tidy v14 (#2272)

This commit is contained in:
Oxan van Leeuwen
2021-09-13 09:35:55 +02:00
committed by GitHub
parent f31e0532c4
commit 0cd24c629a
12 changed files with 41 additions and 45 deletions

View File

@@ -79,10 +79,8 @@ struct SunAtTime {
num_t jde;
num_t t;
SunAtTime(num_t jde) : jde(jde) {
// eq 25.1, p. 163; julian centuries from the epoch J2000.0
t = (jde - 2451545) / 36525.0;
}
// eq 25.1, p. 163; julian centuries from the epoch J2000.0
SunAtTime(num_t jde) : jde(jde), t((jde - 2451545) / 36525.0) {}
num_t mean_obliquity() const {
// eq. 22.2, p. 147; mean obliquity of the ecliptic