openc3/python/openc3/interfaces/simulated_target_interface.py
Avoid deeply nested control flow statements. Open
Open
if packet == "DISCONNECT":
Logger.info(
f"{self.name}: Protocol {protocol.__class__.__name__} read_packet requested disconnect"
)
return None
Avoid deeply nested control flow statements. Open
Open
if packet == "STOP":
break
if packet == "STOP":
Avoid too many return
statements within this function. Open
Open
return packet