Hi all,

I have a question about the STR modifier for serin2 (or DEBUGIN, I'm assuming that they act the same way?). Simply put, does STR do any ascii conversion of the input bytes when it writes them to the array? In other words, if I do:

DEBUGIN [STR array\1]

and the incoming byte is $44, then

array[0] == $44

and not $52, or something else?

Sample Code:

This ends with the array full of garbage:
================
payload var byte[15]
reply var byte
msg var byte
timeout con byte
reply = 5
...
DEBUGIN timeout, error, [WAIT(msg), STR payload\reply]
==========================================

While this one works fine:
===================
payload var byte[15]
reply var byte
msg var byte
timeout con byte
reply = 5
...
DEBUGIN timeout, error, [WAIT(msg), payload[0],_
payload[1],_
...
payload[5] ]
============================================

Other than this, the serial comm works fine, but I can't seem to get STR to do what (I think) it should. I am new to PBP, though...

Thanks much,

Ian