diff --git a/home.html b/home.html
index 062639e..acc29b4 100644
--- a/home.html
+++ b/home.html
@@ -1263,10 +1263,10 @@
let resData = res
if (resData.success) {
data = resData.content
- lineinputValue = parseFloat(data.lineinput.audio.toFixed(1))
- mic1Value = parseFloat(data.mic1.audio.toFixed(1))
- mic2Value = parseFloat(data.mic2.audio.toFixed(1))
- outputValue = parseFloat(data.output.audio.toFixed(1))
+ lineinputValue = data.lineinput.audio.toFixed(1)
+ mic1Value = data.mic1.audio.toFixed(1)
+ mic2Value = data.mic2.audio.toFixed(1)
+ outputValue = data.output.audio.toFixed(1)
console.log(typeof (lineinputValue), typeof (mic1Value), typeof (mic2Value), typeof (outputValue))
bindData()
}
@@ -1365,9 +1365,9 @@
if (number == -0) {
number = 0
}
- console.log(number, lineinputValue.toFixed(1), typeof (number), typeof (lineinputValue))
- if (number != lineinputValue.toFixed(1) && isInput == false) {
- changeInputValue('lineinput', number)
+ console.log(number.toFixed(1), lineinputValue.toFixed(1), typeof (number), typeof (lineinputValue))
+ if (number.toFixed(1) != lineinputValue.toFixed(1) && isInput == false) {
+ changeInputValue('lineinput', number.toFixed(1))
}
}
@@ -1407,9 +1407,9 @@
if (number == -0) {
number = 0
}
- console.log(number, mic1Value.toFixed(1), typeof (number), typeof (mic1Value))
- if (mic1Value.toFixed(1) != number && isInput == false) {
- changeInputValue('mic1', number)
+ console.log(number.toFixed(1), mic1Value.toFixed(1), typeof (number), typeof (mic1Value))
+ if (mic1Value.toFixed(1) != number.toFixed(1) && isInput == false) {
+ changeInputValue('mic1', number.toFixed(1))
}
}
@@ -1451,9 +1451,9 @@
if (number == -0) {
number = 0
}
- console.log(number, mic2Value.toFixed(1), typeof (number), typeof (mic2Value))
- if (mic2Value.toFixed(1) != number && isInput == false) {
- changeInputValue('mic2', number)
+ console.log(number.toFixed(1), mic2Value.toFixed(1), typeof (number), typeof (mic2Value))
+ if (mic2Value.toFixed(1) != number.toFixed(1) && isInput == false) {
+ changeInputValue('mic2', number.toFixed(1))
}
}
@@ -1496,9 +1496,9 @@
if (number == -0) {
number = 0
}
- console.log(number, outputValue.toFixed(1), typeof (number), typeof (outputValue))
- if (outputValue.toFixed(1) != number && isInput == false) {
- changeInputValue('output', number)
+ console.log(number.toFixed(1), outputValue.toFixed(1), typeof (number), typeof (outputValue))
+ if (outputValue.toFixed(1) != number.toFixed(1) && isInput == false) {
+ changeInputValue('output', number.toFixed(1))
}
}