mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
Add a msleep in the SSP loop to avoid taking 100% CPU when waiting for commands.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2386 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
809f4f7e07
commit
67fb65b984
@ -10,6 +10,7 @@ void qsspt::run()
|
||||
{
|
||||
receivestatus=this->ssp_ReceiveProcess();
|
||||
sendstatus=this->ssp_SendProcess();
|
||||
msleep(1);
|
||||
sendbufmutex.lock();
|
||||
if(datapending && receivestatus==SSP_TX_IDLE)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user