[Lcdproc] Possible Server Bug
Topher Fangio
tfangio@fractech.net
Tue Aug 14 22:25:01 2007
Hello all,
I have been writing a Ruby API which acts like a client and connects to
the LCDd server.
I am mostly done with the core of the functionality but I have run
across a bug. I have
actually solved this at the moment by sticking a nasty 0.1 second delay
into my program.
Here is the problem:
My client connects and starts sending commands to LCDd. So far,
everything has worked
great. I started working on the interface for menus/menu items and it
worked pretty well.
Now, when I decided to code the "Ring" menu item, I started noticing
some really random
bugs. I had already added the "Checkbox" menu item and it worked fine.
It seemed though,
that I was not able to use both of them simultaneously. I could add both
and I received
"success" messages and the server appeared to be happy, but it was only
adding one of
the menu items and it was always garbled by the second addition. Example
below:
Add Check Box( id="boom", text = "boom" )
Wait for success response from server
Add Ring( id="test", text = "Testing" )
Wait for success response from server
The outcome of the previous was a check box with the text set to "Testing".
Now, the other problem that I noticed is that with a "menu_add_item"
command, I
receive two (2) "success" responses from the server. I was under the
impression that
one command yielded one response. It appears that this is not the case.
Is this working
properly and just not documented or is this a bug?
Also, while I am mentioning this...is there an easy way to remove the
space between characters
for the LCD? I looked around for a while the other day and could not
find it.
Thanks much and have a wonderful day!
-Topher Fangio