search for: evtcount

Displaying 5 results from an estimated 5 matches for "evtcount".

Did you mean: bitcount
2005 Aug 02
0
newhidups for APC Back-UPS ES 650
...t;info_type, item->dfl, nutvalue); } + else + upsdebugx(3, "%s not affected", item->info_type); /* FIXME: else => revert the status, ie -LB == reset LB... */ } else - upsdebugx(2, "%s = %ld", item->info_type, eventsList[evtCount-1]->Value); + { + if (strncmp(item->info_type, "ups.status", 10)) + upsdebugx(2, "%s = %ld", item->info_type, eventsList[evtCount-1]->Value); + else + upsdebugx(3, "%s not affected", item->info_type); + } }...
2006 Oct 18
1
newhidups with APC Smart-UPS - workaround!
...for 3 months in several installations) patch is below: --- nut-2.0.4/drivers/newhidups.c.orig 2006-08-09 11:35:32.000000000 +0400 +++ nut-2.0.4/drivers/newhidups.c 2006-08-09 11:35:44.000000000 +0400 @@ -452,7 +452,7 @@ hid_info_t *item; char *nutvalue; int retcode, evtCount = 0; - HIDItem *eventsList[10]; + HIDItem *eventsList[30]; upsdebugx(1, "upsdrv_updateinfo...");
2006 Oct 18
2
newhidups with APC Smart-UPS 1500
...ion fault. Thanks, -- Peter Schmier, Jacob wrote: > > > The source of the segmentation fault is in newhidups.c at line 534. > > 528 > 529 void upsdrv_updateinfo(void) > 530 { > 531 hid_info_t *item; > 532 char *nutvalue; > 533 int retcode, evtCount = 0; > 534 HIDItem *eventsList[10]; > 535 > 536 upsdebugx(1, "upsdrv_updateinfo..."); > 537 > 538 > > The array only holds pointers to 10 HID items. > > > =>Got 16 HID Objects... > > Produces a segmentation fault. > > I got...
2006 Sep 08
3
newhidups with APC Smart-UPS 1500
Hello, I'm using the stable amd64 port of Debian Linux. I installed (the latest) nut-2.0.1-4 and nut-usb packages for utilizing an APC Smart-UPS 1500 USB. I tried "apcupsd" first but "nut" makes an even more sophisticated impression on me and has more security options. I had problems with the newhidups driver. It didn't find a device with matching VendorID. And
2007 Aug 23
1
[nut-commits] svn commit r1073 - in trunk: . drivers
...eturn; > } > + > + if (hid_ups_walk(HU_WALKMODE_INIT) == FALSE) { > + hd = NULL; > + return; > + } > } > #ifdef DEBUG > interval(); > @@ -716,7 +721,7 @@ > /* Process pending events (HID notifications on Interrupt pipe) */ > for (i = 0; i < evtCount; i++) { > > - if (HIDGetDataValue(udev, event[i], &value, 2) != 1) > + if (HIDGetDataValue(udev, event[i], &value, poll_interval) != 1) > continue; > > if (nut_debug_level >= 1) { > @@ -807,7 +812,7 @@ > > void upsdrv_initups(void) > { &...