Skip to content

Commit

Permalink
Zeroing out stateful values in TA/TP Window upon their initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
James Shen committed Jan 2, 2025
1 parent a7984ff commit d47179a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/triggeralgs/TAWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ class TAWindow

friend std::ostream& operator<<(std::ostream& os, const TAWindow& window);

timestamp_t time_start;
uint64_t adc_integral;
timestamp_t time_start = 0;
uint64_t adc_integral = 0;
std::unordered_map<channel_t, uint16_t> channel_states;
std::vector<TriggerActivity> inputs;
};
Expand Down
4 changes: 2 additions & 2 deletions include/triggeralgs/TPWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class TPWindow

friend std::ostream& operator<<(std::ostream& os, const TPWindow& window);

timestamp_t time_start;
uint32_t adc_integral;
timestamp_t time_start = 0;
uint32_t adc_integral = 0;
std::unordered_map<channel_t, uint16_t> channel_states;
std::vector<TriggerPrimitive> inputs;
};
Expand Down

0 comments on commit d47179a

Please sign in to comment.