Fixed bug with crashing UI if no measurement data could be retrieved.

This commit is contained in:
jupfi 2024-05-22 12:42:20 +02:00
parent 03d5571b59
commit 63b2908eb2

View file

@ -58,6 +58,10 @@ class LimeNQRController(BaseSpectrometerController):
measurement_data = self.process_measurement_results(lime)
if not measurement_data:
self.emit_measurement_error("Measurement failed. Unable to retrieve data.")
return -1
# Resample the RX data to the dwell time settings
dwell_time = self.module.model.get_setting_by_name(
self.module.model.RX_DWELL_TIME