mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-28 01:00:02 +02:00
fix
This commit is contained in:
parent
fdf6632356
commit
ff4ca4af6c
@ -479,21 +479,19 @@ int Beb_SetDataStream(int left, int enable) {
|
||||
(left ? XPAR_GPIO_LFT_STRM_DSBL_MSK : XPAR_GPIO_RGHT_STRM_DSBL_MSK);
|
||||
|
||||
u_int32_t value = Beb_Read32(csp0base, reg);
|
||||
LOG(logINFO, ("data streaming register value before:0x%x\n", value));
|
||||
// disabling in firmware
|
||||
if (!enable)
|
||||
value |= mask;
|
||||
else
|
||||
value &= ~mask;
|
||||
LOG(logINFO, ("Going to set data streaming register value:0x%x\n", value));
|
||||
u_int32_t retval = Beb_Write32(csp0base, reg, value);
|
||||
/*if (retval != value) {
|
||||
/f (retval != value) {
|
||||
LOG(logERROR,
|
||||
("Could not %s %s fpga datastream. Wrote 0x%x, read 0x%x\n",
|
||||
(enable ? "enable" : "disable"), (left ? "left" : "right"),
|
||||
value, retval));
|
||||
Beb_close(fd, csp0base);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
Beb_close(fd, csp0base);
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user