mirror of
https://github.com/nqrduck/nqrduck-spectrometer-limenqr.git
synced 2024-11-09 11:10:03 +00:00
Updated failure check.
This commit is contained in:
parent
f4499fc774
commit
797234e9a2
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ class LimeNQRController(BaseSpectrometerController):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
logger.warning("Could not set frequency to: %s", value)
|
logger.warning("Could not set frequency to: %s", value)
|
||||||
self.module.nqrduck_signal.emit("notification", ["Error", "Could not set frequency to: " + value])
|
self.module.nqrduck_signal.emit("notification", ["Error", "Could not set frequency to: " + value])
|
||||||
self.module.nqrduck_signal.emit("failure", ["set_frequency", value])
|
self.module.nqrduck_signal.emit("failure_set_frequency", value)
|
||||||
|
|
||||||
def set_averages(self, value):
|
def set_averages(self, value):
|
||||||
logger.debug("Setting averages to: %s", value)
|
logger.debug("Setting averages to: %s", value)
|
||||||
|
@ -293,4 +293,4 @@ class LimeNQRController(BaseSpectrometerController):
|
||||||
except ValueError:
|
except ValueError:
|
||||||
logger.warning("Could not set averages to: %s", value)
|
logger.warning("Could not set averages to: %s", value)
|
||||||
self.module.nqrduck_signal.emit("notification", ["Error", "Could not set averages to: " + value])
|
self.module.nqrduck_signal.emit("notification", ["Error", "Could not set averages to: " + value])
|
||||||
self.module.nqrduck_signal.emit("failure", ["set_averages", value])
|
self.module.nqrduck_signal.emit("failure_set_averages", value)
|
||||||
|
|
Loading…
Reference in a new issue