bx-935-calc #1
|
@ -77,7 +77,7 @@ const changeParametres = () => {
|
|||
|
||||
if (auto_length) {
|
||||
let w = parametric.length.min
|
||||
const max_sections = Math.ceil((total_length_mm - fence_length) / (parametric.length.min + fence_length))
|
||||
const max_sections = Math.floor((total_length_mm - fence_length) / (parametric.length.min + fence_length))
|
||||
const min_sections = Math.ceil((total_length_mm - fence_length) / (parametric.length.max + fence_length))
|
||||
|
||||
for (let index = min_sections; index <= max_sections; index++) {
|
||||
|
@ -92,6 +92,8 @@ const changeParametres = () => {
|
|||
}
|
||||
}
|
||||
length = w
|
||||
} else {
|
||||
full_sections = Math.floor((total_length_mm - fence_length) / (length + fence_length))
|
||||
}
|
||||
|
||||
if (((full_sections * length) + (full_sections * fence_length) + fence_length) <= total_length_mm) {
|
||||
|
|
Loading…
Reference in New Issue