Where is this "U" coming from? ( 1v81.664 ) #477
Unanswered
espruino-discuss
asked this question in
JavaScript
Replies: 2 comments
-
Posted at 2015-11-04 by @gfwilliams Not sure I get you... so Did you intend there to be an |
Beta Was this translation helpful? Give feedback.
0 replies
-
Posted at 2015-11-04 by DrAzzy Ahh! Yes, I thought I had an else there, ave that's why nothing made sense |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-11-04 by DrAzzy
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
Beta Was this translation helpful? Give feedback.
All reactions