Imported Upstream version 2.6.1
This commit is contained in:
parent
459aaf9392
commit
a367d9bc54
178 changed files with 4651 additions and 3279 deletions
|
|
@ -221,13 +221,13 @@ unsigned char * CmdSerial(unsigned char *OutBuffer, int Len, unsigned char *RetB
|
|||
unsigned char *p ;
|
||||
int BuffLen ;
|
||||
|
||||
// The default error code (no received character)
|
||||
/* The default error code (no received character) */
|
||||
ErrCode = ERR_COM_NO_CHARS ;
|
||||
|
||||
SendCmdToSerial(OutBuffer, Len) ;
|
||||
usleep(10000) ; // small delay (1/100 s))
|
||||
usleep(10000) ; /* small delay (1/100 s) */
|
||||
|
||||
// get chars until timeout
|
||||
/* get chars until timeout */
|
||||
BuffLen = 0 ;
|
||||
while (ser_get_char(upsfd, TmpBuff, 0, 10000) == 1)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue