From 0f5d5e2711e46413ab9f0446cc58c342a05bfffb Mon Sep 17 00:00:00 2001 From: Dominic Oram Date: Tue, 9 Jul 2024 14:30:52 +0100 Subject: [PATCH] Change type of robot error code PV --- src/dodal/devices/robot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dodal/devices/robot.py b/src/dodal/devices/robot.py index 016573731e..3745d7ff31 100644 --- a/src/dodal/devices/robot.py +++ b/src/dodal/devices/robot.py @@ -60,7 +60,8 @@ def __init__( self.program_running = epics_signal_r(bool, prefix + "PROGRAM_RUNNING") self.program_name = epics_signal_r(str, prefix + "PROGRAM_NAME") self.error_str = epics_signal_r(str, prefix + "PRG_ERR_MSG") - self.error_code = epics_signal_r(int, prefix + "PRG_ERR_CODE") + # Change error_code to int type when https://github.com/bluesky/ophyd-async/issues/280 released + self.error_code = epics_signal_r(float, prefix + "PRG_ERR_CODE") super().__init__(name=name) async def pin_mounted_or_no_pin_found(self):