Skip to content

Commit fe8d940

Browse files
committed
em-analysis: Fix end-slots handling for 5 min energy manager data
In the wild this bug will most likely have never been hit as it can only be triggered if local timezone is UTC.
1 parent cd1f58b commit fe8d940

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

software/src/modules/em_energy_analysis/em_energy_analysis.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,10 +1834,12 @@ void EMEnergyAnalysis::history_energy_manager_5min_response(IChunkedResponse *re
18341834
rc = em_common.wem_get_sd_energy_manager_data_points(utc_end_year,
18351835
utc_end_month,
18361836
utc_end_day,
1837-
utc_start_hour,
1838-
utc_start_minute,
1839-
utc_start_slots,
1837+
utc_end_hour,
1838+
utc_end_minute,
1839+
utc_end_slots,
18401840
&status);
1841+
1842+
utc_end_slots = 0;
18411843
}
18421844

18431845
//logger.printfln("history_energy_manager_5min_response: %d-%02d-%02d",

0 commit comments

Comments
 (0)