From d588f5f2a2c89d47bab8f4178dd72e8362cc50b1 Mon Sep 17 00:00:00 2001 From: Niklas Eiling Date: Mon, 26 Feb 2024 11:06:48 +0100 Subject: [PATCH] dino: use enum instead of literal for GAIN Signed-off-by: Niklas Eiling --- fpga/lib/ips/dino.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fpga/lib/ips/dino.cpp b/fpga/lib/ips/dino.cpp index 33d075bd2..694333477 100644 --- a/fpga/lib/ips/dino.cpp +++ b/fpga/lib/ips/dino.cpp @@ -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) {