mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-10 05:38:40 +01:00
fixed ctb dbit clock changing period in tests as it was setting run clock instead
This commit is contained in:
@@ -1000,7 +1000,7 @@ TEST_CASE("dbitclk", "[.cmdcall]") {
|
|||||||
auto det_type = det.getDetectorType().squash();
|
auto det_type = det.getDetectorType().squash();
|
||||||
|
|
||||||
if (det_type == defs::CHIPTESTBOARD) {
|
if (det_type == defs::CHIPTESTBOARD) {
|
||||||
auto prev_val = det.getRUNClock();
|
auto prev_val = det.getDBITClock();
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
caller.call("dbitclk", {"20"}, -1, PUT, oss);
|
caller.call("dbitclk", {"20"}, -1, PUT, oss);
|
||||||
@@ -1017,7 +1017,7 @@ TEST_CASE("dbitclk", "[.cmdcall]") {
|
|||||||
REQUIRE(oss.str() == "dbitclk 10\n");
|
REQUIRE(oss.str() == "dbitclk 10\n");
|
||||||
}
|
}
|
||||||
for (int i = 0; i != det.size(); ++i) {
|
for (int i = 0; i != det.size(); ++i) {
|
||||||
det.setRUNClock(prev_val[i], {i});
|
det.setDBITClock(prev_val[i], {i});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// clock index might work
|
// clock index might work
|
||||||
|
|||||||
Reference in New Issue
Block a user