Skip to content

Commit

Permalink
Merge pull request #32 from rjwills28/format_string_from_bytearray
Browse files Browse the repository at this point in the history
Support string formatting following PVWS change
  • Loading branch information
kasemir authored May 10, 2024
2 parents 58069e4 + f05a972 commit 4806d2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/webapp/widgets/textupdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ function format_pv_data_as_text(widget, data)
text = (data.value | 0).toString(2);
text = "0b" + text;
}
else if (widget.data("format") == "string" && Array.isArray(data.value))
{
text = String.fromCharCode.apply(String, data.value);
}
else
{
if (data.precision === undefined)
Expand Down

0 comments on commit 4806d2e

Please sign in to comment.