Page 1 of 1
%d% works only with 2 digit decimal numbers
Posted: Sat Sep 22, 2007 5:09 pm
by tom-tom
If I try to send out a decimal value using %d% in Generic Serial Module's Command Write Data it seems that only the last two digits of the decimal number is sent out correctly. The first digit will create another byte. Does this mean that I can't use it for sending out any numbers over 99. Any experiences about this?
Posted: Sun Sep 23, 2007 12:13 pm
by Richard Naninck
Did you also try %1%. It is no answer, but it may be a work around.
Posted: Sun Sep 23, 2007 2:54 pm
by tom-tom
AFAIK %1% sends out ASCII bytes. I use it somewhere else and it works OK. I got around this issue using %x% substituting hexa values. I just wanted to know whether it is a bug with the decimal values. Sometimes it can be useful to be able to send out decimal values without converting them to hex. Anyway the conversion doesn't take much either using a script. I might have sent my previous post in the bug section of the forum.