From 7a777a58a3649b076ef4dfb023e8fce10d5ca3e7 Mon Sep 17 00:00:00 2001 From: Xiao Ma Date: Wed, 25 Jan 2017 20:45:50 +0800 Subject: [PATCH] THCI: Commit with new assigned Activetimestamp if any instead of default value. (#1206) --- tools/harness-thci/OpenThread.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/harness-thci/OpenThread.py b/tools/harness-thci/OpenThread.py index 06008bafb..cdaaaac7e 100644 --- a/tools/harness-thci/OpenThread.py +++ b/tools/harness-thci/OpenThread.py @@ -2353,8 +2353,6 @@ class OpenThread(IThci): if xCommissionerSessionId != None: cmd += ' binary ' - - if xCommissionerSessionId != None: cmd += '0b02' sessionid = str(hex(xCommissionerSessionId))[2:] @@ -2454,6 +2452,7 @@ class OpenThread(IThci): def setActiveTimestamp(self, xActiveTimestamp): print '%s call setActiveTimestamp' % self.port try: + self.activetimestamp = xActiveTimestamp cmd = 'dataset activetimestamp %s' % str(xActiveTimestamp) self.hasActiveDatasetToCommit = True return self.__sendCommand(cmd)[0] == 'Done'