Skip to content

Commit 4a7c6ff

Browse files
committed
Make a boundedfloattext object instead
1 parent a24012f commit 4a7c6ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

boards/RFSoC2x2/rfsoc_ofdm/drivers/overlay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,15 +161,15 @@ def on_rx_carrier_change(self, change):
161161
self.adc_tile.SetupFIFO(True)
162162

163163
def carrier_frequency(self):
164-
self.tx_carrier_ipw = ipw.FloatText(
164+
self.tx_carrier_ipw = ipw.BoundedFloatText(
165165
min=1536,
166166
max=3072,
167167
value=self.fc,
168168
description='Tx Carrier (MHz):',
169169
disabled=False,
170170
style={'description_width': 'initial'}
171171
)
172-
self.rx_carrier_ipw = ipw.FloatText(
172+
self.rx_carrier_ipw = ipw.BoundedFloatText(
173173
min=1536,
174174
max=3072,
175175
value=self.fc,

boards/ZCU111/rfsoc_ofdm/drivers/overlay.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ def on_rx_carrier_change(self, change):
132132
self.adc_tile.SetupFIFO(True)
133133

134134
def carrier_frequency(self):
135-
self.tx_carrier_ipw = ipw.FloatText(
135+
self.tx_carrier_ipw = ipw.BoundedFloatText(
136136
min=1536,
137137
max=3072,
138138
value=self.fc,
139139
description='Tx Carrier (MHz):',
140140
disabled=False,
141141
style={'description_width': 'initial'}
142142
)
143-
self.rx_carrier_ipw = ipw.FloatText(
143+
self.rx_carrier_ipw = ipw.BoundedFloatText(
144144
min=1536,
145145
max=3072,
146146
value=self.fc,

0 commit comments

Comments
 (0)