Skip to content

Commit

Permalink
move signal handling to TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Dec 25, 2023
1 parent f0af6d9 commit fc2c456
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions spf/sdrpluto/sdr_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@
import sys
from typing import Optional

import signal
import sys


def signal_handler(sig, frame):
print("You pressed Ctrl+C!")
sys.exit(0)


#TODO close SDR on exit
#import signal
#def signal_handler(sig, frame):
# print("You pressed Ctrl+C!")
# sys.exit(0)
# signal.signal(signal.SIGINT, signal_handler)
# print('Press Ctrl+C')
# signal.pause()
Expand Down

0 comments on commit fc2c456

Please sign in to comment.