kopia lustrzana https://github.com/OpenBuilds/OpenBuilds-CONTROL
Changing back to parseInt
rodzic
91e41720ed
commit
228bef380d
|
@ -10,14 +10,14 @@ var jogRateA = 2000
|
|||
|
||||
function jogOverride(newVal) {
|
||||
if (grblParams.hasOwnProperty('$110')) {
|
||||
jogRateX = (parseFloat(grblParams['$110']) * (newVal / 100)).toFixed(0);
|
||||
jogRateY = (parseFloat(grblParams['$111']) * (newVal / 100)).toFixed(0);
|
||||
jogRateZ = (parseFloat(grblParams['$112']) * (newVal / 100)).toFixed(0);
|
||||
jogRateX = (parseInt(grblParams['$110']) * (newVal / 100)).toFixed(0);
|
||||
jogRateY = (parseInt(grblParams['$111']) * (newVal / 100)).toFixed(0);
|
||||
jogRateZ = (parseInt(grblParams['$112']) * (newVal / 100)).toFixed(0);
|
||||
|
||||
$('#jro').data('slider').val(newVal)
|
||||
}
|
||||
if (grblParams.hasOwnProperty('$113')) {
|
||||
jogRateA = (parseFloat(grblParams['$113']) * (newVal / 100)).toFixed(0);
|
||||
jogRateA = (parseInt(grblParams['$113']) * (newVal / 100)).toFixed(0);
|
||||
}
|
||||
localStorage.setItem('jogOverride', newVal);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue