Skip to content

Commit f02edcb

Browse files
committed
solar_forecast: Fix copy+paste error
1 parent 0966b30 commit f02edcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

software/src/modules/solar_forecast/solar_forecast.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void SolarForecast::update()
182182
// Find plane that is due for update
183183
plane_current = nullptr;
184184
for (SolarForecastPlane &plane : planes) {
185-
if (plane.state.get("active")->asBool() && (plane.state.get("next_check")->asUint() < timestamp_minutes())) {
185+
if (plane.config.get("active")->asBool() && (plane.state.get("next_check")->asUint() < timestamp_minutes())) {
186186
plane_current = &plane;
187187
break;
188188
}

0 commit comments

Comments
 (0)