piwave 2.1.9__tar.gz → 2.1.10__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {piwave-2.1.9 → piwave-2.1.10}/PKG-INFO +1 -1
- {piwave-2.1.9 → piwave-2.1.10}/piwave/piwave.py +5 -1
- {piwave-2.1.9 → piwave-2.1.10}/piwave.egg-info/PKG-INFO +1 -1
- {piwave-2.1.9 → piwave-2.1.10}/setup.cfg +1 -1
- {piwave-2.1.9 → piwave-2.1.10}/LICENSE +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/README.md +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave/__init__.py +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave/__main__.py +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave/backends/__init__.py +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave/backends/base.py +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave/backends/fm_transmitter.py +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave/backends/pi_fm_rds.py +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave/logger.py +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave.egg-info/SOURCES.txt +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave.egg-info/dependency_links.txt +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave.egg-info/requires.txt +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/piwave.egg-info/top_level.txt +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/pyproject.toml +0 -0
- {piwave-2.1.9 → piwave-2.1.10}/setup.py +0 -0
|
@@ -87,7 +87,6 @@ class PiWave:
|
|
|
87
87
|
Log.config(silent=silent)
|
|
88
88
|
|
|
89
89
|
self._validate_environment()
|
|
90
|
-
atexit.register(self._stop_curproc)
|
|
91
90
|
|
|
92
91
|
discover_backends()
|
|
93
92
|
|
|
@@ -123,6 +122,8 @@ class PiWave:
|
|
|
123
122
|
min_freq, max_freq = self.backend.frequency_range
|
|
124
123
|
rds_support = "with RDS" if self.backend.supports_rds else "no RDS"
|
|
125
124
|
Log.info(f"Using {self.backend.name} backend ({min_freq}-{max_freq}MHz, {rds_support})")
|
|
125
|
+
|
|
126
|
+
atexit.register(self._stop_curproc)
|
|
126
127
|
|
|
127
128
|
Log.info(f"PiWave initialized - Frequency: {frequency}MHz, PS: {ps}, Loop: {loop}")
|
|
128
129
|
|
|
@@ -562,6 +563,9 @@ class PiWave:
|
|
|
562
563
|
Log.success("Stopped")
|
|
563
564
|
|
|
564
565
|
def _stop_curproc(self):
|
|
566
|
+
if not hasattr(self, 'backend'):
|
|
567
|
+
return
|
|
568
|
+
|
|
565
569
|
if self.backend.current_process:
|
|
566
570
|
self.backend.stop()
|
|
567
571
|
elif self.current_process:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|