Add a little fuzz to the motor diameter detection.

This commit is contained in:
kruland2607 2013-10-10 19:30:54 -05:00
parent 1d36ab5eaf
commit 30b89a54cf

View File

@ -298,7 +298,7 @@ public abstract class MotorFilterPanel extends JPanel {
// find the next largest diameter
int i;
for( i =0; i< diameterValues.length; i++ ) {
if ( mountDiameter< diameterValues[i] ) {
if ( mountDiameter< diameterValues[i] - 0.0005 ) {
break;
}
}