[Nut-upsdev] [nut-commits] svn commit r1156 - in trunk: . drivers
carlos.efr at mail.telepac.pt
Sun Nov 25 20:06:53 UTC 2007
On Nov 25, 2007 11:50 AM, Arjen de Korte
<adkorte-guest at alioth.debian.org> wrote:
> Limit detection of UPS to minimum required number of successful attempts. Flush input- and output buffers before sending any command.
Can you explain the reasoning behind these changes please?
The detection phase didn't stop after the minimum number of required
replies to check for models that reply twice in a row and then proceed
to returning garbage.
Also, the check_ups function was there because the running a query
isn't exactly the same as verifying the communications. It is mostly
the same now, but keeping the two things separated is better.
More information about the Nut-upsdev