bugfix listener mode
This commit is contained in:
parent
f3609b8179
commit
074eb82e78
@ -13,7 +13,7 @@
|
||||
<option name="ADD_SOURCE_ROOTS" value="true" />
|
||||
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
||||
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/tmtcc.py" />
|
||||
<option name="PARAMETERS" value="-l" />
|
||||
<option name="PARAMETERS" value="tmtc -l" />
|
||||
<option name="SHOW_COMMAND_LINE" value="false" />
|
||||
<option name="EMULATE_TERMINAL" value="false" />
|
||||
<option name="MODULE_MODE" value="false" />
|
||||
|
7
tmtcc.py
7
tmtcc.py
@ -227,10 +227,13 @@ class TcHandler(TcHandlerBase):
|
||||
pus_verificator=pus_verificator,
|
||||
)
|
||||
self.cfdp_in_ccsds_wrapper = cfdp_in_ccsds_wrapper
|
||||
# self.cfdp_counter = 0
|
||||
|
||||
def cfdp_done(self) -> bool:
|
||||
return not self.cfdp_in_ccsds_wrapper.handler.put_request_pending()
|
||||
if self.cfdp_handler_started:
|
||||
if not self.cfdp_in_ccsds_wrapper.handler.put_request_pending():
|
||||
self.cfdp_handler_started = False
|
||||
return True
|
||||
return False
|
||||
|
||||
def feed_cb(self, info: ProcedureWrapper, wrapper: FeedWrapper):
|
||||
self.queue_helper.queue_wrapper = wrapper.queue_wrapper
|
||||
|
Loading…
Reference in New Issue
Block a user