1
0
Fork 0
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:
Niklas Eiling 2024-02-26 11:06:48 +01:00 committed by Niklas Eiling
parent fb742dddd1
commit d588f5f2a2

View file

@ -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) {