[Nut-upsuser] Megatec serial UPS woes

Carlos Rodrigues carlos.efr at mail.telepac.pt
Sat Feb 9 11:46:04 UTC 2008


On Feb 7, 2008 1:44 PM, Angela Williams <angie at eoh.co.za> wrote:
> > Add
> >
> >       ser_flush_io(upsfd);
> >
> > on lines 258, 278, 309 and 333. Basically, this will flush whatever is in
> > the in- and output buffers before sending a command to the UPS. It is safe
> > (but not always needed) to do so before every ser_send_pace() function.
[snip]
> Would it not be worthwhile to added these lines into the megatec.c source file
> or the FAQ?

Added in the trunk and the testing branch.

-- 
Carlos Rodrigues



More information about the Nut-upsuser mailing list