diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 18516c2..76f6eff 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -1265,15 +1265,17 @@ __stdcall EgtSimHome( void) //----------------------------------------------------------------------------- BOOL -__stdcall EgtSimGetAxisInfoPos( int nI, wchar_t*& wsName, double* pdVal) +__stdcall EgtSimGetAxisInfoPos( int nI, wchar_t*& wsToken, BOOL* pbLinear, double* pdVal) { - if ( &wsName == nullptr || pdVal == nullptr) + if ( &wsToken == nullptr || pbLinear == nullptr || pdVal == nullptr) return FALSE ; - string sName ; - if ( ! ExeSimGetAxisInfoPos( nI, sName, *pdVal)) + string sToken ; + bool bLinear ; + if ( ! ExeSimGetAxisInfoPos( nI, sToken, bLinear, *pdVal)) return FALSE ; - wsName = _wcsdup( stringtoW( sName)) ; - return (( wsName == nullptr) ? FALSE : TRUE) ; + wsToken = _wcsdup( stringtoW( sToken)) ; + *pbLinear = ( bLinear ? TRUE : FALSE) ; + return (( wsToken == nullptr) ? FALSE : TRUE) ; } //----------------------------------------------------------------------------- diff --git a/EgtInterface.rc b/EgtInterface.rc index bda444d..8b46f05 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ