Skip to content

Commit

Permalink
changed the GS receiver so that it doesn't stop when receiving data i…
Browse files Browse the repository at this point in the history
…t cannot decode
  • Loading branch information
dyka3773 committed Jan 18, 2024
1 parent 59e4098 commit 92f99f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Ground Station/dropstar_gui/telecoms/rxsm_receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def receive_data():

data_has_been_received = False

try:
while True:
while True:
try:
data = connection.readline()
if data:
logging.info(f"Received data: {data}")
Expand All @@ -30,8 +30,8 @@ def receive_data():
logging.warning(
"No data received. Experiment is probably still off or there is something wrong in the connection...")
logging.debug("No data received")
except Exception as e:
logging.error(f"Error in receiving data: {e}")
except Exception as e:
logging.error(f"Error in receiving data: {e}")


@cache
Expand Down

0 comments on commit 92f99f6

Please sign in to comment.