mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-11-18 17:24:04 +01:00
check is back
This commit is contained in:
1 parent
55caf3e867
commit
e01f2745cc
1 file changed
+6
-1
@@ -149,7 +149,12 @@ int validate_writePatternWord(char *message, int addr, uint64_t word) {
|
||||
uint64_t retval = readPatternWord(addr);
|
||||
LOG(logDEBUG1, ("Pattern word (addr:0x%x) retval: 0x%llx\n", addr,
|
||||
(long long int)retval));
|
||||
validate64(&ret, message, word, retval, "set pattern word", HEX);
|
||||
// runs for every pattern word: only build the message on a mismatch
|
||||
if (retval != word) {
|
||||
char mode[64];
|
||||
sprintf(mode, "set pattern word for addr 0x%x", addr);
|
||||
validate64(&ret, message, word, retval, mode, HEX);
|
||||
}
|
||||
#endif
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user