From 6764a19e76f65549d2084bb9dfeb34c6fe980d99 Mon Sep 17 00:00:00 2001 From: Arash Aletayeb Date: Sun, 19 Jun 2022 08:17:51 +0200 Subject: [PATCH] HVB returned to offset --- developHw.pro.user | 2 +- .../boardsCtrlMngt/BoardsCtrlMngt.cpp | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/developHw.pro.user b/developHw.pro.user index 6eedf39..ce79751 100644 --- a/developHw.pro.user +++ b/developHw.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/src/model/hardware/core/lowLevelApi/register/boardsCtrlMngt/BoardsCtrlMngt.cpp b/src/model/hardware/core/lowLevelApi/register/boardsCtrlMngt/BoardsCtrlMngt.cpp index 718a9f1..abfcf1a 100644 --- a/src/model/hardware/core/lowLevelApi/register/boardsCtrlMngt/BoardsCtrlMngt.cpp +++ b/src/model/hardware/core/lowLevelApi/register/boardsCtrlMngt/BoardsCtrlMngt.cpp @@ -800,18 +800,18 @@ void BoardsCtrlMngt::mpsHvSet(float& hva, float& hvb) const _mpsDacs->hvaValue = hva; } -//if(hvb > HVB_MAX_VALUE) -//{ -//_mpsDacs->hvbValue = HVB_MAX_VALUE; -//} -//else if (hvb < HVB_Offset) -//{ -//_mpsDacs->hvbValue = HVB_Offset; -//} -//else -//{ -//_mpsDacs->hvbValue = hvb; -//} +// if(hvb > HVB_MAX_VALUE) +// { +// _mpsDacs->hvbValue = HVB_MAX_VALUE; +// } +// else if (hvb < HVB_Offset) +// { +// _mpsDacs->hvbValue = HVB_Offset; +// } +// else +// { +// _mpsDacs->hvbValue = hvb; +// } _mpsDacs->hvbValue = HVB_Offset; _mpsDacs->cwdValue = CWD_Offset;