From 3eaec47c25041b3d51c14c5d831202fb63a86bd4 Mon Sep 17 00:00:00 2001 From: gac-iss Date: Tue, 17 Jan 2023 17:18:52 +0100 Subject: [PATCH] --- src/main/java/ScientaPanel.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/ScientaPanel.java b/src/main/java/ScientaPanel.java index 3f77503..3adf8ed 100644 --- a/src/main/java/ScientaPanel.java +++ b/src/main/java/ScientaPanel.java @@ -219,14 +219,14 @@ public final class ScientaPanel extends DevicePanel { } catch (DeviceInvalidParameterException ex){ dd.pass = null; } - dd.low = getDevice().getLowEnergy().getValue(); - dd.center = getDevice().getCenterEnergy().getValue(); - dd.high = getDevice().getHighEnergy().getValue(); - dd.width = getDevice().getEnergyWidth().getValue(); + dd.low = ((Number)getDevice().getLowEnergy().getValue()).doubleValue(); + dd.center = ((Number)getDevice().getCenterEnergy().getValue()).doubleValue(); + dd.high = ((Number)getDevice().getHighEnergy().getValue()).doubleValue(); + dd.width = ((Number)getDevice().getEnergyWidth().getValue()).doubleValue(); //dd.frames = getDevice().getFrames().getValue(); - dd.time = getDevice().getStepTime().getValue(); - dd.size = getDevice().getStepSize().getValue(); - dd.slices = getDevice().getSlices().getValue(); + dd.time = ((Number)getDevice().getStepTime().getValue()).doubleValue(); + dd.size = ((Number)getDevice().getStepSize().getValue()).doubleValue(); + dd.slices = ((Number)getDevice().getSlices().getValue()).intValue(); dd.current = getDevice().getCurrentChannel().getValue().intValue(); dd.total = getDevice().getTotalChannels().getValue().intValue();