cwEuCon.cpp : Add fank channel to log output.
This commit is contained in:
parent
c36ba83b7b
commit
a11abf391c
@ -510,8 +510,10 @@ namespace cw
|
||||
char type = 'U';
|
||||
uint16_t numb = 0;
|
||||
uint16_t id = 0;
|
||||
uint16_t ch = 0;
|
||||
unsigned incr = 8;
|
||||
|
||||
|
||||
// if this is a heartbeat msg
|
||||
if( buf[bi] == kChHb_EuProtoId )
|
||||
{
|
||||
@ -521,6 +523,7 @@ namespace cw
|
||||
else
|
||||
{
|
||||
uint16_t* v = (uint16_t*)(buf+bi);
|
||||
ch = ntohs(v[0]);
|
||||
id = ntohs(v[1]);
|
||||
numb = ntohs(v[3]);
|
||||
|
||||
@ -549,7 +552,7 @@ namespace cw
|
||||
}
|
||||
}
|
||||
if( type != 'H' )
|
||||
printf("%i %c (0x%x) %i (0x%x)\n",fb->fbIndex,type,id,numb,numb);
|
||||
printf("%i %i : %c (0x%x) %i (0x%x)\n",fb->fbIndex, ch, type,id,numb,numb);
|
||||
|
||||
bi += incr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user