diff --git a/EgtMachKernel.rc b/EgtMachKernel.rc index 775a56e..5d5c08f 100644 Binary files a/EgtMachKernel.rc and b/EgtMachKernel.rc differ diff --git a/MachineCalc.cpp b/MachineCalc.cpp index 30660d1..36f0733 100644 --- a/MachineCalc.cpp +++ b/MachineCalc.cpp @@ -1423,7 +1423,19 @@ Machine::AdjustAngleInStroke( const STROKE& Stroke, double& dAng) const dAng += ANG_FULL ; while ( dAng > Stroke.Max) dAng -= ANG_FULL ; - return ( dAng >= Stroke.Min && dAng <= Stroke.Max) ; + // se asse rotante a corsa nulla + if ( Stroke.Max - Stroke.Min < EPS_ANG_SMALL) { + double dStrokeMid = ( Stroke.Min + Stroke.Max) / 2 ; + if ( abs( dAng - dStrokeMid) < EPS_ANG_SMALL) { + dAng = dStrokeMid ; + return true ; + } + else + return false ; + } + // altrimenti assi rotante vero + else + return ( dAng >= Stroke.Min && dAng <= Stroke.Max) ; } //----------------------------------------------------------------------------