Sending serial code like \xfe\x01 does not work, why? (by MGP)
I'm testing a serial display (Hobbybotics) and there is something i don't understand.
Sending hexcode like \xfe\x00 does not work, not even in simulationmode, it prints \xfe
When i'm sending hex code from the pc everything works.
Using a UART variable then it works!
I wonder if this is a bug? look at de code below for more information.
thx
(no subject) (by MGP)
Hello Boris
Thx for the reply, but I have tryd almost everything and the only method is to use " UART send instruction".
This works fine.
So I think that there is something wrong with sending HEX code through "formatted string over UART instruction".
I'm trying to still solve the problem
regards
(no subject) (by Jonathan Westhues)
It's a bug. I was using character codes 0 and 1 as flags to specify where the variable (if any) gets interpolated, so they didn't work as normal characters.
I've fixed that, and now any character value should work. I've attached a test build; let me know if that solves your problem, or if you see anything else.
(no subject) (by MGP)
Hello Jonathan
Everything works very well now, thank you very much.
A very good program that I've worked with a lot of hours.
Maybe I publish some small program's for the ldmicro community.
Regards
Jean Marie (MGP)
ps: if it's not too much work you may emty the transmitbuffer at startup. It's always sends something to the RS port, even with open contact.
But it's not urgent for me.
Again thank you.
(no subject) (by Samukelo Shezi)
Jonathan, thank you for popping in every now and then despite your busy schedule. I hope the good Lord keeps you in good health and prosperity for us. Keep well!