[PATCH] osmocom-bb[master]: fake_trx/clck_gen.py: reset the clck_src when calling stop()
Harald Welte
gerrit-no-reply at lists.osmocom.org
Thu Feb 22 15:33:28 UTC 2018
Review at https://gerrit.osmocom.org/6795
fake_trx/clck_gen.py: reset the clck_src when calling stop()
Change-Id: I1043f71a2cbe856a0cb605db8a7feab9defa6afd
---
M src/target/fake_trx/clck_gen.py
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/95/6795/1
diff --git a/src/target/fake_trx/clck_gen.py b/src/target/fake_trx/clck_gen.py
index 1eb970a..088155b 100755
--- a/src/target/fake_trx/clck_gen.py
+++ b/src/target/fake_trx/clck_gen.py
@@ -51,6 +51,7 @@
def __init__(self, clck_links, clck_start = 0, ind_period = 102):
self.clck_links = clck_links
self.ind_period = ind_period
+ self.clck_start = clck_start
self.clck_src = clck_start
# Calculate counter time
@@ -68,6 +69,9 @@
self.timer.cancel()
self.timer = None
+ # Reset the clock source
+ self.clck_src = self.clck_start
+
def send_clck_ind(self):
# Keep clock cycle
if self.clck_src % self.GSM_SUPERFRAME >= 0:
--
To view, visit https://gerrit.osmocom.org/6795
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I1043f71a2cbe856a0cb605db8a7feab9defa6afd
Gerrit-PatchSet: 1
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
More information about the gerrit-log
mailing list