<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">win_extserialport.cpp should launch another thread that does a<br>
(blocking) WaitCommEvent on the serial port and emits the signal. That<br>
is quickly getting messy though.</blockquote><div><br>That would be the proper thing to do, but is a bit ridiculous, IMHO.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<br>
Easier is to revert those changes (just that revision please) and<br>
add a sleep in the loop to make sure that the thread is not<br>
permanently hogging cpu. It is not as good, but will still help batterylife.<br>
<br>
</blockquote></div>I re-added the polling in the slot forwarding class via a timer (500ms).<br><br>Works fine, AFAIK and does not hurt CPU.<br><br>- Chris -<br></div>