Skip to content

Commit

Permalink
LED only displayed values above zero
Browse files Browse the repository at this point in the history
  • Loading branch information
kasemir committed Sep 11, 2023
1 parent 3133eba commit 649d637
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ view.jsp?cache=false&display=file:/Path/to/Display+Builder/01_main.bob
<hr>

<div id="versions">
2023-09-11 LED only displayed values above zero instead of non-zero, incl. negative<br>
2023-08-15 Preserve spaces in labels, text updates<br>
2023-07-28 Cache invalidates entry based on modification time<br>
2023-07-20 Handle macros with default value<br>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/js/dbwr.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ function is_bit_set(widget, data)
{
let bit = widget.data("bit");
if (bit < 0)
return data.value > 0;
return data.value != 0;

let mask = 1 << bit;
return data.value & mask;
Expand Down

0 comments on commit 649d637

Please sign in to comment.