From cf4b71d8b90122f753486215557af46b25bc2185 Mon Sep 17 00:00:00 2001 From: tomaszkob89 Date: Tue, 23 Nov 2021 19:03:10 +0100 Subject: [PATCH] [thci] fix issue with not initialized isPowerDown flag (#7196) When the GRL starts, it calls initialize() reset() method on each device. Reset method call fails due to missing (uninitialized) attribute `isPowerDown`. --- tools/harness-thci/OpenThread.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/harness-thci/OpenThread.py b/tools/harness-thci/OpenThread.py index 9f173a56f..ac332af23 100644 --- a/tools/harness-thci/OpenThread.py +++ b/tools/harness-thci/OpenThread.py @@ -402,6 +402,7 @@ class OpenThreadTHCI(object): self.UIStatusMsg = '' self.AutoDUTEnable = False + self.isPowerDown = False self._is_net = False # whether device is through ser2net self.logStatus = { 'stop': 'stop',