[Nut-upsdev] Re: Changes to megatec.c

Carlos Rodrigues carlos.efr at mail.telepac.pt
Fri May 4 08:11:21 UTC 2007


On 5/4/07, Frank van Wensveen <frankvw at myconnection.co.za> wrote:
> That's what I understood them to be. Therefore the 36V line in the 2.0
> stable distribution doesn't make sense:
>
>  { 36,  1.5,  3.0, 1.64, 2.31 },
>
> So that would mean that a 36V UPS will report a current voltage of
> between 1.5 and 3.0V?

That's right.

> That's why I would consider it a very good idea to have these values
> in a config file rather than hardcoded in the driver's source code.
> That way you could override the hardcoded defaults without breaking
> your legacy support for other users, _and_ users could change voltage
> thresholds to suit your particular needs without having to edit C
> source code and do a recompile (things that most users won't be too
> comfortable with).

That's exactly what you can do with the "battvolts" option supported
by the latest version of the driver.

-- 
Carlos Rodrigues



More information about the Nut-upsdev mailing list