From ad4549f72d17b353c49d35f434b9016ea2a60a27 Mon Sep 17 00:00:00 2001 From: flap1 Date: Fri, 10 May 2024 07:23:42 +0900 Subject: [PATCH] chore: update conversion --- TlmCmd/telemetry_generator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TlmCmd/telemetry_generator.c b/TlmCmd/telemetry_generator.c index 66e0ea09..e6143205 100644 --- a/TlmCmd/telemetry_generator.c +++ b/TlmCmd/telemetry_generator.c @@ -124,7 +124,7 @@ CCP_CmdRet Cmd_GENERATE_TLM(const CommonCmdPacket* packet) TSP_set_dest_flags(&TG_ctp_, dest_flags); TSP_set_dest_info(&TG_ctp_, dr_partition); // FIXME: もはや dr partition ですらない TSP_set_tlm_id(&TG_ctp_, id); - TSP_set_2nd_hdr_ver(&TG_ctp_, record_ti->startup_counter); + TSP_set_2nd_hdr_ver(&TG_ctp_, (uint8_t)(record_ti->startup_counter)); // 生成したパケットを指定された回数配送処理へ渡す while (num_dumps != 0) @@ -250,7 +250,7 @@ static CCP_CmdRet TG_generate_tlm_(TLM_CODE tlm_id, TSP_setup_primary_hdr(&TG_ctp_, CTP_APID_FROM_ME, TG_get_next_seq_count_(), packet_len); // Secondary Header - TSP_set_2nd_hdr_ver(&TG_ctp_, record_ti->startup_counter); + TSP_set_2nd_hdr_ver(&TG_ctp_, (uint8_t)(record_ti->startup_counter)); TSP_set_board_time(&TG_ctp_, (uint32_t)(TMGR_get_master_total_cycle())); TSP_set_tlm_id(&TG_ctp_, tlm_id); // FIXME: 他の時刻も入れる