January 17th, 2013, 08:14 AM
Trouble with timer
Hi everybody !
The purpose is to manage serial communication with a pedal.
I wrote a class pedal that allows to search for the serial port on which the pedal is connected. Therefore I send a request to the pedal and set up a timer event of 20 ms. If no reply, I search for the next serial port.
When found I send configuration to the pedal and set another timer event of 200 ms that requests for pedal state.
It runs fine.
Now if the pedal is disconnected then connected again I would like it to run again.
Therefore I set another timer event every 2s that launches all what I described above.
The trouble comes because the 20 ms timer event doesn't run and I do not understand why.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!