Hi, When running a driver with "-h" or without parameters, the upsdrv_cleanup function seems to be called (which caused the warning I mention in the ChangeLog). This doesn't seem right.
Regards, On Sat, Jun 28, 2008 at 7:47 PM, Carlos Rodrigues <[EMAIL PROTECTED]> wrote: > Author: carlosefr-guest > Date: Sat Jun 28 18:47:17 2008 > New Revision: 1502 > > Log: > * drivers/megatec.c: > - Add parameters to set DTR and RTS explicitly in case the default values > don't work. > - Allow the UPS load value to be undefined. > - Send an "I" command before detection because some models seem to > require it. > - Do nothing in upsdrv_cleanup if the file descriptor is invalid (to shut > up a warning displayed when running "megatec -h"). -- Carlos Rodrigues _______________________________________________ Nut-upsdev mailing list Nut-upsdev@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev