mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +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( channelNo );
|
||||||
XP_USE( devID );
|
XP_USE( devID );
|
||||||
#else
|
#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;
|
XP_Bool found = XP_FALSE;
|
||||||
for ( AddressRecord* rec = comms->recs; !!rec && !found; rec = rec->next ) {
|
for ( AddressRecord* rec = comms->recs; !!rec && !found; rec = rec->next ) {
|
||||||
found = (rec->channelNo & ~CHANNEL_MASK) == (channelNo & ~CHANNEL_MASK);
|
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 );
|
augmentAddrIntrnl( comms, &rec->addr, &tmp, XP_TRUE );
|
||||||
ASSERT_ADDR_OK( &rec->addr );
|
ASSERT_ADDR_OK( &rec->addr );
|
||||||
|
CNO_FMT( cbuf, channelNo );
|
||||||
|
XP_LOGFF( "added for channel %s", cbuf );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue