[Nut-upsdev] [nut-commits] svn commit r3104 - branches/apcsmart-dev/drivers

Arjen de Korte nut+devel at de-korte.org
Wed Jun 29 14:39:40 UTC 2011


Citeren Michal Soltys <soltys op ziu.info>:

> Those two commands happen only once before the actual loop is in  
> effect, during the initialization stage - in upsdrv_initinfo(). It's  
> the only place where such large delay is used. Note this is only the  
> max possible delay, the read will return as quickly as possible  
> (each command ends with LF) - in case of one of my models it takes  
> roughly 3 seconds ("capability set" command, "command set" is  
> faster) - so I wanted to be on the safe side.
>
> I persume the upper limit it's not a problem when upsdrv_initinfo()  
> is considered ?

In that case, it's fine. But be aware if for whatever reason you need  
to call these functions from within in upsdrv_updateinfo, you'll need  
to make sure not to hang around waiting for the answer.

Best regards, Arjen
-- 
Please keep list traffic on the list (off-list replies will be rejected)





More information about the Nut-upsdev mailing list