mirror of
https://github.com/espressif/openthread.git
synced 2026-08-09 20:27:47 +00:00
[mac] add enhanced frame pending (#4334)
This commit adds enhanced frame pending feature of Thread 1.2. This requires the platform radio driver to correctly set frame pending bit for Data frames and MAC Data Request frames.
This commit is contained in:
@@ -107,6 +107,9 @@ class RealTime(BaseSimulator):
|
||||
self.commissioning_messages[nodeid] = []
|
||||
return ret
|
||||
|
||||
def now(self):
|
||||
return time.time()
|
||||
|
||||
def go(self, duration, nodeid=None):
|
||||
time.sleep(duration)
|
||||
|
||||
@@ -456,6 +459,9 @@ class VirtualTime(BaseSimulator):
|
||||
self.receive_events()
|
||||
self.awake_devices.clear()
|
||||
|
||||
def now(self):
|
||||
return self.current_time / 1000000
|
||||
|
||||
def go(self, duration, nodeid=None):
|
||||
assert self.current_time == self._pause_time
|
||||
duration = int(duration) * 1000000
|
||||
|
||||
Reference in New Issue
Block a user