Displaying 1 result from an estimated 1 matches for "optiquery".
2006 Nov 26
1
Patch for optiups to support Zinto D from ONLINE USV-Systeme AG
...);
+ if ( testvar(OPTI_ZINTO) ) ser_send( upsfd, "\r\n" );
return optireadline();
}
@@ -179,12 +196,26 @@
{
/* You do realize this will kill power to ourself. Would probably only
* be useful for killing power for a slave computer */
+ if ( testvar(OPTI_ZINTO) )
+ {
+ optiquery( "Ct1" );
+ optiquery( "Cs0000000" );
+ sleep(2);
+ return STAT_INSTCMD_HANDLED;
+ }
optiquery( "Ct0" );
optiquery( "Cs00000000" );
return STAT_INSTCMD_HANDLED;
}
else if (!strcasecmp(cmdname, "load.on"))
{...