search for: iindex

Displaying 9 results from an estimated 9 matches for "iindex".

Did you mean: index
2011 May 19
2
Scheduling NUT 2.6.1
Fellows, time has come for a new NUT release: I'm planning on 2.6.1 next week (max Friday 27), and I'm currently processing remaining patches. If you have some more on your side, please send in. cheers, Arnaud -- Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer -
2005 Jul 20
1
Speex Windows from 1.1.6 source
...roblem is the audio played on the receiving side after decoding Is only a "hush" or it is pure noise. Below is my code, that I have used for encoding and decoding. /************** Encode ******************/ speex_bits_reset(&Encbits); psInput = (short *)InputBuf; iIndex = 80; memset(OutputBuf,0,(200 * sizeof(float))); /*Copy the 16 bits values to float so Speex can work on them*/ for (i=0;i<iIndex;i++){ /* float */pfEncBuf[i]=/* short */psInput[i]; } /*Encode the frame*/ speex_encode(encState,pfEncBuf, &Encbits);...
2013 Jul 03
1
bcmxcp: Patch for using command map if present to control commands added by dstate_addcmd
...static void init_ups_meter_map(const unsigned char *map, unsigned char len); @@ -625,7 +625,7 @@ void init_alarm_map() } /* Get information on UPS commands */ -void init_command_map(int size) +bool_t init_command_map(int size) { unsigned char answer[PW_ANSWER_MAX_SIZE]; int res, iIndex = 0, ncounter, NumComms = 0; @@ -634,7 +634,10 @@ void init_command_map(int size) res = command_read_sequence(PW_COMMAND_LIST_REQ, answer); if (res <= 0) + { upsdebugx(2, "No command list block."); + return FALSE; + } else { ups...
2006 Aug 23
0
bcmxcp: get right firmware version
...rom the last CPU, not the first. I wonder wether it makes more sense to store them all, aka ups.firmware.cpu0 etc. $OpenBSD$ --- drivers/bcmxcp.c.orig Wed Aug 23 11:16:01 2006 +++ drivers/bcmxcp.c Wed Aug 23 11:21:26 2006 @@ -742,10 +742,7 @@ void upsdrv_initinfo(void) (unsigned char)answer[iIndex]); iIndex += 2; len--; - } while ((strcmp("00.00", dstate_getinfo("ups.firmware")) == 0) && len > 0); - - /* Increment index to point at end of CPU bytes. */ - iIndex += len * 2; + } while (len > 0); } /* Get rating in kVA, if present */ -- Henn...
2013 Jul 03
1
bcmxcp: Patch for adding ups.load and battery.voltage.low
On Jul 2, 2013, at 5:16 PM, Kjell Claesson wrote: >> I hope other people can also test this. >> >> Regards >> Alf Hogemark > > Due to some crashes on the disks and lack of time I don't have the git on the > pc now. But maybe some other can commit this. I'd like to ask people to specifically try the bcmxcp branch on GitHub - it includes some changes
2013 Jul 01
1
bcmxcp: Patch for cosmetic code changes
...utlet_name, "%d", auto_dly_off); - dstate_setflags(outlet_name, ST_FLAG_RW | ST_FLAG_STRING); - dstate_setaux(outlet_name, 5); + dstate_setflags(outlet_name, ST_FLAG_RW | ST_FLAG_STRING); + dstate_setaux(outlet_name, 5); auto_dly_on = get_word(answer+iIndex); iIndex += 2; upsdebugx(2, "Auto delay on: %d\n", auto_dly_on); snprintf(outlet_name, sizeof(outlet_name)-1, "outlet.%d.delay.start", num); dstate_setinfo(outlet_name, "%d", auto_dly_on); - dstate_setflags(outlet_name, S...
2009 Dec 15
2
drivers/bcmxcp.c portability issue
I ran into a portability issue with drivers/bcmxcp.c in nut-2.4.1 on my UnixWare 7.1.4 machine. The error I get is ..... UX:acomp: ERROR: "/opt/src/utils/nut-2.4.1/drivers/bcmxcp.c", line 835: integral constant expression expected ..... Looking at the code we see ..... int init_outlet(unsigned char len) { unsigned char answer[len]; ..... Although gcc can handle it, it's not
2007 Mar 26
1
Handling Multiple Select Lists
Hi All, After much searching and head scratching I post you this! I can''t seem to find a generic way to handle multiple select data. The function I use to receive form values will only pass the first selected value from a multiple select. I have pasted part of the form and the function below. Thanks for any pointers, Vince // Example selectbox <select
2009 Jun 08
2
help to speed up loops in r
Hi i am using a script which involves the following loop. It attempts to reduce a data frame(zz) of 95000 * 41 down to a data frame (averagedreplicates) of 95000 * 21 by averaging the replicate values as you can see in the script below. This script however is very slow (2days). Any suggestions to speed it up. NB I have also tried using rowMeans rather than adding the 2 values and dividing by 2.