mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
more stuff
This commit is contained in:
parent
f2809e6e15
commit
066232d234
1 changed files with 4 additions and 1 deletions
|
@ -1271,7 +1271,8 @@ comms_addMQTTDevID( CommsCtxt* comms, XP_PlayerAddr channelNo,
|
|||
XP_USE( channelNo );
|
||||
XP_USE( devID );
|
||||
#else
|
||||
XP_LOGFF( "(channelNo: %d, devID: " MQTTDevID_FMT ")", channelNo, *devID );
|
||||
CNO_FMT( cbuf, channelNo );
|
||||
XP_LOGFF( "(channelNo: %s, devID: " MQTTDevID_FMT ")", cbuf, *devID );
|
||||
XP_Bool found = XP_FALSE;
|
||||
for ( AddressRecord* rec = comms->recs; !!rec && !found; rec = rec->next ) {
|
||||
found = (rec->channelNo & ~CHANNEL_MASK) == (channelNo & ~CHANNEL_MASK);
|
||||
|
@ -1286,6 +1287,8 @@ comms_addMQTTDevID( CommsCtxt* comms, XP_PlayerAddr channelNo,
|
|||
|
||||
augmentAddrIntrnl( comms, &rec->addr, &tmp, XP_TRUE );
|
||||
ASSERT_ADDR_OK( &rec->addr );
|
||||
CNO_FMT( cbuf, channelNo );
|
||||
XP_LOGFF( "added for channel %s", cbuf );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue