Skip to content

Commit

Permalink
Record at end too
Browse files Browse the repository at this point in the history
  • Loading branch information
rowleya committed Nov 13, 2024
1 parent e9c43f9 commit 6fb8b48
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c_common/models/chip_power_monitor/src/chip_power_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ static void sample_in_slot(UNUSED uint unused0, UNUSED uint unused1) {
if (simulation_is_finished()) {
simulation_handle_pause_resume(resume_callback);

if (sample_count > 0) {
record_aggregate_sample();
}

recording_finalise();

// Invert the time calculation so that any time read is correct
Expand Down

0 comments on commit 6fb8b48

Please sign in to comment.