From ae24d97c6ebd7ae561a0f809e9950637ea6781e1 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 2 Oct 2024 18:03:45 +0200 Subject: [PATCH] EgtMachKernel : - corretto controllo bit licenza per generazione CN e per lavorazioni avanzate. --- Estimator.cpp | 2 +- Generator.cpp | 4 ++-- SimulatorMP.cpp | 2 +- SimulatorSP.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Estimator.cpp b/Estimator.cpp index 0629fa5..4673c77 100644 --- a/Estimator.cpp +++ b/Estimator.cpp @@ -68,7 +68,7 @@ Estimator::Run( const string& sCncFile, const string& sInfo) if ( nRet == KEY_OK) bKey = true ; bool bAdvMach = false ; - if ( ( nOpt1 & KEYOPT_EMK_ADV) == 1) + if ( ( nOpt1 & KEYOPT_EMK_ADV) != 0) bAdvMach = true ; // Esecuzione diff --git a/Generator.cpp b/Generator.cpp index 85d4e4a..0b648d9 100644 --- a/Generator.cpp +++ b/Generator.cpp @@ -68,10 +68,10 @@ Generator::Run( const string& sCncFile, const string& sInfo) if ( nRet == KEY_OK) bKey = true ; bool bNcOff = false ; - if ( ( nOpt1 & KEYOPT_EMK_NC_OFF) == 1) + if ( ( nOpt1 & KEYOPT_EMK_NC_OFF) != 0) bNcOff = true ; bool bAdvMach = false ; - if ( ( nOpt1 & KEYOPT_EMK_ADV) == 1) + if ( ( nOpt1 & KEYOPT_EMK_ADV) != 0) bAdvMach = true ; // Esecuzione diff --git a/SimulatorMP.cpp b/SimulatorMP.cpp index 80bef6a..b8bc50a 100644 --- a/SimulatorMP.cpp +++ b/SimulatorMP.cpp @@ -170,7 +170,7 @@ SimulatorMP::Start( bool bFirst) if ( nRet == KEY_OK) bKey = true ; bool bAdvMach = false ; - if ( ( nOpt1 & KEYOPT_EMK_ADV) == 1) + if ( ( nOpt1 & KEYOPT_EMK_ADV) != 0) bAdvMach = true ; if ( ! bMinTime || ! bCurrTime || ! bKey) { m_pMchMgr->SetLastError( 1000, "NC_OFF") ; diff --git a/SimulatorSP.cpp b/SimulatorSP.cpp index 9030ea1..81a63e1 100644 --- a/SimulatorSP.cpp +++ b/SimulatorSP.cpp @@ -167,7 +167,7 @@ SimulatorSP::Start( bool bFirst) if ( nRet == KEY_OK) bKey = true ; bool bAdvMach = false ; - if ( ( nOpt1 & KEYOPT_EMK_ADV) == 1) + if ( ( nOpt1 & KEYOPT_EMK_ADV) != 0) bAdvMach = true ; if ( ! bMinTime || ! bCurrTime || ! bKey) { m_pMchMgr->SetLastError( 1000, "NC_OFF") ;