Skip to content

Commit

Permalink
fix: 🐛 don't send value if 0
Browse files Browse the repository at this point in the history
  • Loading branch information
dewiweb committed Feb 26, 2024
1 parent 0d904eb commit 8046baa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ ipcRenderer.on('incoming_data', (event, translateX, translateY, translateZ, rota
if (visible !== "hidden") {
let now = Date();
var inc_value = table.rows[4].cells[i].firstElementChild.value
//console.log("inc_value", inc_value)
if (inc_value !== 0){
ipcRenderer.send("ok_to_send", prefix, index, index_or_not, attrib, inc_value)
console.log("inc_value", inc_value)
if (inc_value !== "0"){
ipcRenderer.send("ok_to_send", prefix, index, index_or_not, attrib, inc_value)
}
}
}
Expand Down

0 comments on commit 8046baa

Please sign in to comment.