some improvements
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
#!/usr/bin/env python3
|
||||
"""EIVE TMTC Commander"""
|
||||
from distutils.log import debug
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
@ -63,11 +62,11 @@ def main():
|
||||
|
||||
tmtc_backend.set_mode(CoreModeList.CONTINUOUS_MODE)
|
||||
|
||||
get_console_logger().info("Disabling console logger for continuous operation")
|
||||
get_console_logger().setLevel("ERROR")
|
||||
# get_console_logger().info("Disabling console logger for continuous operation")
|
||||
# get_console_logger().setLevel("ERROR")
|
||||
|
||||
tmtccmd.init_and_start_daemons(tmtc_backend=tmtc_backend)
|
||||
tmtccmd.performOperation(tmtc_backend=tmtc_backend)
|
||||
tmtc_backend.perform_operation()
|
||||
|
||||
# remove cmdline args so that we can reuse code
|
||||
sys.argv = sys.argv[:1]
|
||||
@ -81,7 +80,7 @@ def main():
|
||||
tmtc_backend.set_opcode(args.op_code)
|
||||
tmtc_backend.set_mode(CoreModeList.CONTINUOUS_MODE)
|
||||
|
||||
tmtccmd.performOperation(tmtc_backend=tmtc_backend)
|
||||
tmtc_backend.perform_operation()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Reference in New Issue
Block a user