Displaying 2 results from an estimated 2 matches for "can_upsd".
Did you mean:
can_push
2009 Jan 29
1
Fwd: upscode2.c
...ebian.org
Hi,
I apologize if you are not the correct person, but I was wanting to
submit a bug report for the upscode2.c driver but could not find a way
to do that from the NUT website.
Here is the problem code and what I have noticed in upscode2.c:
void upsdrv_shutdown(void)
{
if (can_upsd && can_uppc) {
upslogx(LOG_EMERG, "Emergency shutdown");
upscsend("UPSD"); /* Set shutdown delay */
upscsend("1"); /* 1 second (lowest possible.
0 returns current.*/
upslogx(L...
2010 Mar 03
1
using upscode2 driver with Powerware 5119 RM
...ing the UPPC shutdown command. Removing this UPSD allows the
custom value to be used correctly.
Also I changed the shutdown messages so the ups.delay.* values are reported.
With all that, here's what upsdrv_shutdown looks like:
void upsdrv_shutdown(void)
{
if (upsc_commandlist()) {
if (!can_upsd || !can_uppc) {
fatalx(LOG_EMERG, "Shutdown called, but UPS does not support it");
}
} else {
upslogx(LOG_EMERG, "Can't determine if shutdown is supported, attempting
anyway");
}
upslogx(LOG_EMERG, "Emergency shutdown");
char msg[100];
snprintf(msg,...