Skip to content

Commit eb48fcb

Browse files
committedNov 4, 2018
NOTICKET: Minor changes in Log depht of Layer 3
1 parent 349d81c commit eb48fcb

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
 

‎src/py/darcstack.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
class DarcStack:
1717
# Constants
18-
PRINT_L3 = True
19-
PRINT_L4 = True
18+
PRINT_L3 = False
19+
PRINT_L4 = False
2020
PRINT_L5 = True
2121
REPAIR_L2 = False
2222
CRC_L2 = True
@@ -195,7 +195,8 @@ def layer3(self, pBic, pInfoblock):
195195
elif '0x6' == SeCh_TYPE:
196196
self.layer3_SeCh_SCOT(SeCh_ML.uint)
197197
else:
198-
print('layer3\terror\tunkown SeCh TYPE')
198+
if self.PRINT_L3:
199+
print('layer3\terror\tunkown SeCh TYPE')
199200

200201

201202
elif SILCh == '0x9': # Short Message (SMCh)
@@ -448,9 +449,9 @@ def layer3(self, pBic, pInfoblock):
448449

449450

450451
else:
451-
# unknown logical channel id
452-
print('layer3\terror\tunknown logical channel id')
453-
return
452+
if self.PRINT_L3:# unknown logical channel id
453+
print('layer3\terror\tunknown logical channel id')
454+
return
454455

455456
def layer3_SeCh_COT(self, pMsgLen):
456457

0 commit comments

Comments
 (0)
Please sign in to comment.