I get data from a sensor via a serial link. No problems, this part works fine.
If I include the four lines near the bottom to convert the three bytes into a word I get a large number (about 50,000) instead of the expected 200 to 999. Inspecting the three bytes at the first debug the numbers are as expected.
If I comment out the serin line and use the artificial numbers below the symbols the word is correct (523).
What am I doing wrong?
If I include the four lines near the bottom to convert the three bytes into a word I get a large number (about 50,000) instead of the expected 200 to 999. Inspecting the three bytes at the first debug the numbers are as expected.
If I comment out the serin line and use the artificial numbers below the symbols the word is correct (523).
What am I doing wrong?
Attachments
-
619 bytes Views: 13