mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
[thci] revert spellcheck in THCI method names (#9175)
Reverting name change intialize -> initalize. To fix thread harness issues.
This commit is contained in:
@@ -11,6 +11,7 @@ apending
|
||||
asender
|
||||
asent
|
||||
ect
|
||||
intialize
|
||||
nd
|
||||
ot
|
||||
shashes
|
||||
|
||||
@@ -225,7 +225,7 @@ class OpenThreadTHCI(object):
|
||||
**kwargs: Arbitrary keyword arguments
|
||||
Includes 'EUI' and 'SerialPort'
|
||||
"""
|
||||
self.initialize(kwargs)
|
||||
self.intialize(kwargs)
|
||||
|
||||
@abstractmethod
|
||||
def _connect(self):
|
||||
@@ -399,7 +399,7 @@ class OpenThreadTHCI(object):
|
||||
time.sleep(duration)
|
||||
|
||||
@API
|
||||
def initialize(self, params):
|
||||
def intialize(self, params):
|
||||
"""initialize the serial port with baudrate, timeout parameters"""
|
||||
self.mac = params.get('EUI')
|
||||
self.backboneNetif = params.get('Param8') or 'eth0'
|
||||
|
||||
@@ -90,7 +90,7 @@ class OpenThread_WpanCtl(IThci):
|
||||
self.password = kwargs.get('Param7').strip() if kwargs.get('Param7') else None
|
||||
else:
|
||||
self.port = kwargs.get('SerialPort')
|
||||
self.initialize()
|
||||
self.intialize()
|
||||
except Exception as e:
|
||||
ModuleHelper.WriteIntoDebugLogger('initialize() Error: ' + str(e))
|
||||
|
||||
@@ -794,7 +794,7 @@ class OpenThread_WpanCtl(IThci):
|
||||
except Exception as e:
|
||||
ModuleHelper.WriteIntoDebugLogger('closeConnection() Error: ' + str(e))
|
||||
|
||||
def initialize(self):
|
||||
def intialize(self):
|
||||
"""initialize the serial port with baudrate, timeout parameters"""
|
||||
print('%s call intialize' % self.port)
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user