INTEGER byte1; byte1 = 42; makestring(TX, "\\x%02X", byte1); // this sends 4 characters to TX, a literal backslash, literal x, a 2, and an A makestring(TX, "%c", byte1); // this sends 1 character to TX with the value 42 or \x2A Compiles and runs != working as intended Debugger will happily show you the literal string "\x2A" even though it's not what you were intending to send.? Switch to all hex mode and you'll see \x5C\x78\x32\x41.? Mixed mode can really screw you up, especially when you're looking for what you expect to see.
|