activate enable / disable cycle
This commit is contained in:
@ -122,6 +122,9 @@ class ServiceHandler(SdrSourceEventClient):
|
||||
logger.debug("sdr source failed; stopping services.")
|
||||
self.stopServices()
|
||||
|
||||
def onEnable(self):
|
||||
self._scheduleServiceStartup()
|
||||
|
||||
def isSupported(self, mode):
|
||||
configured = Config.get()["services_decoders"]
|
||||
available = [m.modulation for m in Modes.getAvailableServices()]
|
||||
|
@ -258,6 +258,12 @@ class ServiceScheduler(SdrSourceEventClient):
|
||||
def onFail(self):
|
||||
self.shutdown()
|
||||
|
||||
def onDisable(self):
|
||||
self.shutdown()
|
||||
|
||||
def onEnable(self):
|
||||
self.scheduleSelection()
|
||||
|
||||
def onBusyStateChange(self, state: SdrBusyState):
|
||||
if state is SdrBusyState.IDLE:
|
||||
self.scheduleSelection()
|
||||
|
Reference in New Issue
Block a user