Displaying 1 result from an estimated 1 matches for "qmodel".
Did you mean:
model
2006 Apr 26
1
RE nut 2.0 fentonups and Xanto S3000R
...return;
mch = raw[17];
@@ -175,28 +178,36 @@ static char *get_id(void)
void upsdrv_initinfo(void)
{
int modelnum, i, ret;
- char temp[256], model[32], *raw;
+ char temp[256], qmodel[32], *model, *raw =
NULL;
- raw = get_id();
+ model = getval("model");
- if (!raw)
- fatalx("Unable to detect a Fenton or
Megatec protocol UPS");
+ if (!model) {
+...