EgtMachKernel :
- completata gestione warnings.
This commit is contained in:
+5
-3
@@ -37,6 +37,8 @@ using namespace std ;
|
||||
// 2008 = "Error in Disposition : outstroke xxx"
|
||||
// 2009 = "Error in Disposition : link movements not calculable"
|
||||
// 2010 = "Error in Disposition : link outstroke xxx"
|
||||
// 2051 = "Table Ref1 changed : (xyz) -> (XYZ)"
|
||||
// 2052 = "Warning in Disposition : No shifts"
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
static std::string DIS_TABLE = "Tab" ;
|
||||
@@ -330,8 +332,8 @@ Disposition::SetTable( const string& sTable)
|
||||
return false ;
|
||||
if ( ! m_sTabName.empty() && EqualNoCase( m_sTabName, sTable) &&
|
||||
! AreSamePointApprox( ptPrevRef1, m_ptRef1)) {
|
||||
string sOut = "Table Ref1 changed : (" + ToString( ptPrevRef1) + ") -> (" + ToString( m_ptRef1) +")" ;
|
||||
LOG_INFO( GetEMkLogger(), sOut.c_str()) ;
|
||||
string sInfo = "Table Ref1 changed : (" + ToString( ptPrevRef1) + ") -> (" + ToString( m_ptRef1) +")" ;
|
||||
m_pMchMgr->SetWarning( 2051, sInfo) ;
|
||||
}
|
||||
// salvo il nome e dichiaro tavola verificata
|
||||
m_sTabName = sTable ;
|
||||
@@ -1370,7 +1372,7 @@ Disposition::SpecialUpdate( void)
|
||||
// se disposizione vuota, esco
|
||||
if ( m_nShifts <= 0) {
|
||||
if ( m_nShifts < 0)
|
||||
LOG_WARN( GetEMkLogger(), "Warning in Disposition : No shifts")
|
||||
m_pMchMgr->SetWarning( 2052, "Warning in Disposition : No shifts") ;
|
||||
return true ;
|
||||
}
|
||||
// calcolo assi macchina
|
||||
|
||||
Reference in New Issue
Block a user