Change in osmocom-bb[master]: trx_toolkit/clck_gen.py: fix TDMA clock counter wrapping

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Sun Jul 12 12:54:08 UTC 2020


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/19225 )


Change subject: trx_toolkit/clck_gen.py: fix TDMA clock counter wrapping
......................................................................

trx_toolkit/clck_gen.py: fix TDMA clock counter wrapping

Change-Id: I157447c7610402f6d62d2b74c9f04fcaa0bc1724
---
M src/target/trx_toolkit/clck_gen.py
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/25/19225/1

diff --git a/src/target/trx_toolkit/clck_gen.py b/src/target/trx_toolkit/clck_gen.py
index 0219bb4..1b92cef 100755
--- a/src/target/trx_toolkit/clck_gen.py
+++ b/src/target/trx_toolkit/clck_gen.py
@@ -92,8 +92,8 @@
 			self.send_clck_ind()
 
 	def send_clck_ind(self):
-		# Keep clock cycle
-		if self.clck_src % GSM_HYPERFRAME >= 0:
+		# Keep the clock cycle
+		if self.clck_src >= GSM_HYPERFRAME:
 			self.clck_src %= GSM_HYPERFRAME
 
 		# We don't need to send so often

-- 
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/19225
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I157447c7610402f6d62d2b74c9f04fcaa0bc1724
Gerrit-Change-Number: 19225
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200712/c34870f7/attachment.htm>


More information about the gerrit-log mailing list