mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
dino: use enum instead of literal for GAIN
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
parent
fb742dddd1
commit
d588f5f2a2
1 changed files with 2 additions and 2 deletions
|
@ -161,8 +161,8 @@ void DinoDac::configureHardware() {
|
|||
logger->debug("DAC Ioext: Direction register configured to {}", readback);
|
||||
ioext.fields.status_led = true;
|
||||
// Default gain is 1. Although not really necessary, let's be explicit here
|
||||
ioext.fields.gain_lsb = 0x00 & 0x1;
|
||||
ioext.fields.gain_msb = 0x00 & 0x2;
|
||||
ioext.fields.gain_lsb = Gain::GAIN_1 & 0x1;
|
||||
ioext.fields.gain_msb = Gain::GAIN_1 & 0x2;
|
||||
setIoextOut(ioext);
|
||||
readback = getIoextOut();
|
||||
if (readback.raw != ioext.raw) {
|
||||
|
|
Loading…
Add table
Reference in a new issue