-
• #2
Not sure I get you... so
outstr
isnew Uint8Array([0, 85, 4, 5])
, and you seeU
which is the 85, but the other characters are control characters that don't get displayed.Did you intend there to be an
else
beforeif (outstr!="") {
? -
• #3
Ahh! Yes, I thought I had an else there, ave that's why nothing made sense
This code was doing something mysterious:
(the bug is that at the bottom, it should be checking and printing text, since it hasn't put anything into outstr at that point, so it should always be "" )...
BUT IT'S NOT!
Serial input of:
+00550405
Would yield:
Am I just daft and missing something? Where is that capitol U coming from? How could outstr EVER not be an empty string at the point where we check it and decide to print the 'other message' bit?!
Observed with 1v81.664
Oops - wrong section. Should be in Javascript or General