Skip to content

Commit 59bf5aa

Browse files
Cleanup commented code. Set the version to 1.0.0
1 parent 33dac5d commit 59bf5aa

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

HighLevelAnalyzer.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# High Level Analyzer
22
# For more information and documentation, please go to https://support.saleae.com/extensions/high-level-analyzer-extensions
33

4-
from saleae.analyzers import HighLevelAnalyzer, AnalyzerFrame, StringSetting, NumberSetting, ChoicesSetting
4+
from saleae.analyzers import HighLevelAnalyzer, AnalyzerFrame
55
from copy import deepcopy
66
from CC1101SpiProtocol import CC1101SpiProtocol, ProtocolFrameType, MARC_STATE
77

@@ -24,11 +24,6 @@ class SpiFrameState:
2424

2525
# High level analyzers must subclass the HighLevelAnalyzer class.
2626
class Hla(HighLevelAnalyzer):
27-
# List of settings that a user can set for this High Level Analyzer.
28-
# TODO Check the String/Number/Choice settings
29-
# my_string_setting = StringSetting()
30-
# my_number_setting = NumberSetting(min_value=0, max_value=100)
31-
# my_choices_setting = ChoicesSetting(choices=('A', 'B'))
3227

3328
# An optional list of types this analyzer produces, providing a way to customize the way frames are displayed in Logic 2.
3429
result_types = {
@@ -66,14 +61,6 @@ def __init__(self):
6661
self.start_time = 0
6762
self.end_time = 0
6863

69-
# TODO Check the String/Number/Choice settings
70-
# print(
71-
# "Settings:",
72-
# self.my_string_setting,
73-
# self.my_number_setting,
74-
# self.my_choices_setting
75-
# )
76-
7764
def decode(self, frame: AnalyzerFrame):
7865
'''
7966
Process a frame from the input analyzer, and optionally return a single `AnalyzerFrame` or a list of `AnalyzerFrame`s.

extension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "CC1101 SPI Analyzer",
33
"apiVersion": "1.0.0",
44
"author": "Andrei Basarab",
5-
"version": "0.0.1",
5+
"version": "1.0.0",
66
"description": "SPI protocol analyzer for the Texas Instruments CC1101 RF Transceiver",
77
"extensions": {
88
"CC1101 SPI Analyzer": {

0 commit comments

Comments
 (0)