mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-07 02:20:42 +02:00
intialize pattern addresses with default, else they are created with value 0 and overwrite the default in server (#628)
This commit is contained in:
parent
946e6aa817
commit
c5b621b684
@ -9,7 +9,15 @@
|
|||||||
|
|
||||||
namespace sls {
|
namespace sls {
|
||||||
|
|
||||||
Pattern::Pattern() = default;
|
Pattern::Pattern() {
|
||||||
|
// initialize pattern addresses
|
||||||
|
for (int i = 0; i != MAX_PATTERN_LEVELS; ++i) {
|
||||||
|
pat->startloop[i] = MAX_PATTERN_LENGTH - 1;
|
||||||
|
pat->stoploop[i] = MAX_PATTERN_LENGTH - 1;
|
||||||
|
pat->wait[i] = MAX_PATTERN_LENGTH - 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Pattern::~Pattern() { delete pat; }
|
Pattern::~Pattern() { delete pat; }
|
||||||
|
|
||||||
Pattern::Pattern(const Pattern &other) {
|
Pattern::Pattern(const Pattern &other) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user