FIX bug on Windows Firefox. n_turns type forced to int to access global LUT

pull/2/head
miguel 2021-10-25 11:04:46 +11:00
rodzic 55af3dfb8b
commit b38974f6f6
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -436,7 +436,7 @@
function getProximityResFromSpacing(spacing_ratio) {
// Use the proximityResistance look-up table and interpolate values depending on the spacing ratio and the number of turns.
var retval = 0.0;
var n_turns = loop_turns_slider.value;
var n_turns = 1 * loop_turns_slider.value;
var i = 0;
for (i = 0; i < (proximityResistance[0].length-1); i++) {
if(spacing_ratio <= proximityResistance[0][i+1]) {