CarletonURocketry / ground-station

The ground station software used to interface with the ground station LoRa board and distribute signals from the rocket across websocket connections.
https://carletonurocketry.github.io/ground-station/
MIT License
7 stars 6 forks source link

Fix SIGTERM methods not correctly executing #72

Closed EliasJRH closed 9 months ago

EliasJRH commented 9 months ago

This PR fixes the shutdown methods in telemetry_utils.py and serial_manager.py by adding the correct method declaration.

Initially, on SIGTERM the shutdown methods in both of these classes are called. When a python process receives SIGTERM, the handler function receives two args which weren't previously handled. The first is the signal number as an int, the second is a stack frame object which represents the current execution frame at the time the signal was received.