search for: getupdateinfo

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

2015 Sep 09
3
APC BACK UPS 2200 model BZ2200BI-BR (New output
...CommReceive: RecPack: (25 bytes) => bb 47 88 ad 1b 0a a0 18 02 30 14 10 0b 1.330298 00 00 00 01 00 09 a1 49 5e 5e 25 fe Detected Solis 1.0 on /dev/cuaU0 UPS Date 1999/10/09 System Date 2015/09/09 day of week Wed UPS internal Time 16:20:48 Shutdown programming not activated 1.330381 getupdateinfo: requesting 25 bytes from ser_get_buf_len() 2.414226 getupdateinfo: received 25 bytes from ser_get_buf_len() 2.414259 CommReceive: RecPack: (25 bytes) => bb 46 88 ac 02 0a a0 09 02 31 14 10 0b 2.414274 00 00 00 01 00 09 a1 49 5e 5e fc fe 2.414566 dstate_init: sock /var/db/nu...
2015 Aug 26
5
APC BACK UPS 2200 model BZ2200BI-BR (update)
Turns out another user reported the same issue with a slightly different model: https://github.com/networkupstools/nut/issues/231 <https://github.com/networkupstools/nut/issues/231> The "stty -f /dev/cuaU0 raw" trick should help, but I am confused as to why FreeBSD has different "raw" settings than what is set up at the same time as the baud rate:
2011 Oct 13
0
1) A memory leak in drivers/rhino.c 2) Wunused-but-set-variable.patch
...= localtime( tmt ); - dian = now->tm_mday; - mesn = now->tm_mon+1; - anon = now->tm_year+1900; - weekn = now->tm_wday; - /* trying detect rhino model */ while ( ( !detected ) && ( j < 10 ) ) { @@ -644,14 +618,6 @@ static void getupdateinfo(void) unsigned char temp[256]; int tam; - /* time update */ - time_t *tmt; - struct tm *now; - tmt = ( time_t * ) malloc( sizeof( time_t ) ); - time( tmt ); - now = localtime( tmt ); - /* int hours, mins; hours = now->tm_hour;...
2011 Oct 03
0
patch: Fix [-Wunused-but-set-variable]
...d( int cmd ) { - int i, chk, checksum=0, iend=18, sizes, ret, kount; /*, j, uc; */ + int i, chk, checksum=0, iend=18, /* sizes=19, */ ret, kount; /*, j, uc; */ unsigned char ch, psend[19]; - sizes = 19; checksum = 0; /* mounting buffer to send */ @@ -645,16 +644,13 @@ static void getupdateinfo(void) unsigned char temp[256]; int tam; - int hours, mins; - /* time update */ time_t *tmt; struct tm *now; tmt = ( time_t * ) malloc( sizeof( time_t ) ); time( tmt ); now = localtime( tmt ); - hours = now->tm_hour; -...
2005 Nov 08
0
gcc4 noise
...warning: pointer targets in passing argument 2 of ser_get_buf_len differ in signedness solis.c:539: warning: pointer targets in passing argument 1 of CommReceive differ in signedness solis.c:541: warning: pointer targets in passing argument 1 of CommReceive differ in signedness solis.c: In function getupdateinfo: solis.c:633: warning: pointer targets in passing argument 2 of ser_get_buf_len differ in signedness solis.c:635: warning: pointer targets in passing argument 1 of CommReceive differ in signedness gcc -I../include -O -Wall -Wsign-compare -c -o al175.o al175.c al175.c: In function comli_prepare: a...