piwave 2.0.5__tar.gz → 2.0.6__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.0.5 → piwave-2.0.6}/PKG-INFO +1 -1
- {piwave-2.0.5 → piwave-2.0.6}/piwave/piwave.py +2 -2
- {piwave-2.0.5 → piwave-2.0.6}/piwave.egg-info/PKG-INFO +1 -1
- {piwave-2.0.5 → piwave-2.0.6}/setup.cfg +1 -1
- {piwave-2.0.5 → piwave-2.0.6}/LICENSE +0 -0
- {piwave-2.0.5 → piwave-2.0.6}/README.md +0 -0
- {piwave-2.0.5 → piwave-2.0.6}/piwave/__init__.py +0 -0
- {piwave-2.0.5 → piwave-2.0.6}/piwave.egg-info/SOURCES.txt +0 -0
- {piwave-2.0.5 → piwave-2.0.6}/piwave.egg-info/dependency_links.txt +0 -0
- {piwave-2.0.5 → piwave-2.0.6}/piwave.egg-info/requires.txt +0 -0
- {piwave-2.0.5 → piwave-2.0.6}/piwave.egg-info/top_level.txt +0 -0
- {piwave-2.0.5 → piwave-2.0.6}/pyproject.toml +0 -0
- {piwave-2.0.5 → piwave-2.0.6}/setup.py +0 -0
|
@@ -13,6 +13,7 @@ import sys
|
|
|
13
13
|
from typing import List, Optional, Callable
|
|
14
14
|
from pathlib import Path
|
|
15
15
|
from urllib.parse import urlparse
|
|
16
|
+
import atexit
|
|
16
17
|
|
|
17
18
|
class Log:
|
|
18
19
|
COLORS = { # absolutely not taken from stackoverflow trust
|
|
@@ -163,8 +164,7 @@ class PiWave:
|
|
|
163
164
|
|
|
164
165
|
self._validate_environment()
|
|
165
166
|
|
|
166
|
-
|
|
167
|
-
signal.signal(signal.SIGTERM, self._handle_interrupt)
|
|
167
|
+
atexit.register(self.cleanup)
|
|
168
168
|
|
|
169
169
|
Log.info(f"PiWave initialized - Frequency: {frequency}MHz, PS: {ps}, Loop: {loop}")
|
|
170
170
|
|
|
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
|