mirror of
https://github.com/nqrduck/nqrduck-spectrometer-limenqr.git
synced 2025-01-02 20:38:07 +00:00
Fixed bug with crashing UI if no measurement data could be retrieved.
This commit is contained in:
parent
03d5571b59
commit
63b2908eb2
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue