mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-28 09:58:30 +01:00
fix failure to correctly pass devids into linux client
This commit is contained in:
parent
76c0ce3a2e
commit
280fc3bfe1
2 changed files with 2 additions and 1 deletions
|
@ -2869,6 +2869,7 @@ main( int argc, char** argv )
|
|||
mainParams.connInfo.mqtt.port = atoi(optarg);
|
||||
break;
|
||||
case CMD_INVITEE_MQTTDEVID:
|
||||
XP_ASSERT( 16 == strlen(optarg) );
|
||||
mainParams.connInfo.mqtt.inviteeDevIDs =
|
||||
g_slist_append( mainParams.connInfo.mqtt.inviteeDevIDs, optarg );
|
||||
types_addType( &mainParams.conTypes, COMMS_CONN_MQTT );
|
||||
|
|
|
@ -207,7 +207,7 @@ class Device():
|
|||
if self.inviteeMQTTDevIDs:
|
||||
args += [ '--force-invite' ]
|
||||
for idid in self.inviteeMQTTDevIDs:
|
||||
asHexStr = '{:16X}'.format(idid)
|
||||
asHexStr = '{:016X}'.format(idid)
|
||||
args += ['--invitee-mqtt-devid', asHexStr]
|
||||
|
||||
self.proc = subprocess.Popen(args, stdout = subprocess.DEVNULL,
|
||||
|
|
Loading…
Reference in a new issue