From 70965c7640ba8d5e2a5f9d88a7b5fdebd243356f Mon Sep 17 00:00:00 2001 From: nHackel Date: Fri, 1 Dec 2023 17:01:05 +0100 Subject: [PATCH] Fix scpi error with version info --- src/client/julia/src/RedPitayaDAQServer.jl | 2 +- src/server/scpi_commands.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/julia/src/RedPitayaDAQServer.jl b/src/client/julia/src/RedPitayaDAQServer.jl index 4c442615..8a464a1f 100644 --- a/src/client/julia/src/RedPitayaDAQServer.jl +++ b/src/client/julia/src/RedPitayaDAQServer.jl @@ -210,7 +210,7 @@ function stringToEnum(enumType::Type{T}, value::AbstractString) where {T <: Enum end imgversion(rp::RedPitaya) = query(rp, scpiCommand(imgversion), scpiReturn(imgversion)) -scpiCommand(::typeof(imgversion)) = "RP:VER:IMG?" +scpiCommand(::typeof(imgversion)) = "RP:VERsion:IMAGe?" scpiReturn(::typeof(imgversion)) = UInt32 """ diff --git a/src/server/scpi_commands.c b/src/server/scpi_commands.c index e268a210..7629ba5b 100644 --- a/src/server/scpi_commands.c +++ b/src/server/scpi_commands.c @@ -1705,7 +1705,7 @@ const scpi_command_t scpi_commands[] = { {.pattern = "STATus:PRESet", .callback = SCPI_StatusPreset,}, /* RP-DAQ */ - {.pattern = "RP:VERsion:IMaGe?", .callback = RP_GetImageVersion,}, + {.pattern = "RP:VERsion:IMAGe?", .callback = RP_GetImageVersion,}, {.pattern = "RP:MODe?", .callback = RP_GetServerMode,}, {.pattern = "RP:MODe", .callback = RP_SetServerMode,}, // DAC