clean up python code a bit #18
@ -17,7 +17,7 @@ EXP_PACKET_ID_TM = PacketId(PacketType.TM, True, EXP_APID)
|
|||||||
EXP_PACKET_ID_TC = PacketId(PacketType.TC, True, EXP_APID)
|
EXP_PACKET_ID_TC = PacketId(PacketType.TC, True, EXP_APID)
|
||||||
OPSSAT_SERVER_PORT = 4096
|
OPSSAT_SERVER_PORT = 4096
|
||||||
TMTC_SERVER_PORT = 4097
|
TMTC_SERVER_PORT = 4097
|
||||||
LOG_LEVEL = logging.DEBUG
|
LOG_LEVEL = logging.INFO
|
||||||
|
|
||||||
|
|
||||||
TC_QUEUE = Queue()
|
TC_QUEUE = Queue()
|
||||||
|
@ -22,8 +22,8 @@ pub const VALID_PACKET_ID_LIST: &[PacketId] = &[PacketId::new_for_tc(true, EXPER
|
|||||||
|
|
||||||
// TODO: Would be nice if this can be commanded as well..
|
// TODO: Would be nice if this can be commanded as well..
|
||||||
/// Can be enabled to print all SPP packets received from the SPP server on port 4096.
|
/// Can be enabled to print all SPP packets received from the SPP server on port 4096.
|
||||||
pub const SPP_CLIENT_WIRETAPPING_RX: bool = true;
|
pub const SPP_CLIENT_WIRETAPPING_RX: bool = false;
|
||||||
pub const SPP_CLIENT_WIRETAPPING_TX: bool = true;
|
pub const SPP_CLIENT_WIRETAPPING_TX: bool = false;
|
||||||
|
|
||||||
#[derive(Copy, Clone, PartialEq, Eq, Debug, TryFromPrimitive, IntoPrimitive)]
|
#[derive(Copy, Clone, PartialEq, Eq, Debug, TryFromPrimitive, IntoPrimitive)]
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
|
@ -8,7 +8,6 @@ pub fn setup_logger() -> Result<(), fern::InitError> {
|
|||||||
}
|
}
|
||||||
let mut path_buf = PathBuf::from(LOG_FOLDER);
|
let mut path_buf = PathBuf::from(LOG_FOLDER);
|
||||||
path_buf.push("output.log");
|
path_buf.push("output.log");
|
||||||
println!("{:?}", path_buf);
|
|
||||||
fern::Dispatch::new()
|
fern::Dispatch::new()
|
||||||
.format(move |out, message, record| {
|
.format(move |out, message, record| {
|
||||||
out.finish(format_args!(
|
out.finish(format_args!(
|
||||||
|
Loading…
Reference in New Issue
Block a user