From df9de8894b7cd2f599b7860cad583026001352a6 Mon Sep 17 00:00:00 2001 From: Mark Meserve Date: Thu, 7 Sep 2017 14:49:08 -0500 Subject: adi: update arm_version function signature --- mpm/lib/mykonos/ad937x_device.cpp | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'mpm/lib/mykonos/ad937x_device.cpp') diff --git a/mpm/lib/mykonos/ad937x_device.cpp b/mpm/lib/mykonos/ad937x_device.cpp index 511a0a0a1..7b6908d5f 100644 --- a/mpm/lib/mykonos/ad937x_device.cpp +++ b/mpm/lib/mykonos/ad937x_device.cpp @@ -471,11 +471,29 @@ api_version_t ad937x_device::get_api_version() arm_version_t ad937x_device::get_arm_version() { arm_version_t arm; + mykonosBuild_t build; _call_api_function(std::bind(MYKONOS_getArmVersion, mykonos_config.device, &arm.major_ver, &arm.minor_ver, - &arm.rc_ver)); + &arm.rc_ver, + &build)); + + switch (build) + { + case MYK_BUILD_RELEASE: + arm.build_type = mpm::ad937x::device::build_type_t::RELEASE; + break; + case MYK_BUILD_DEBUG: + arm.build_type = mpm::ad937x::device::build_type_t::DEBUG; + break; + case MYK_BUILD_TEST_OBJECT: + arm.build_type = mpm::ad937x::device::build_type_t::TEST_OBJECT; + break; + default: + MPM_THROW_INVALID_CODE_PATH(); + } + return arm; } -- cgit v1.2.3