Skip to content

Commit

Permalink
fix a little
Browse files Browse the repository at this point in the history
  • Loading branch information
yngyu committed Mar 9, 2022
1 parent 976bb58 commit d3a9918
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ static GS_VALIDATE_ERR GS_check_fecw_(const uint8_t* data, size_t len)
static GS_VALIDATE_ERR GS_check_ad_cmd_(const TCFrame* tc_frame)
{
GS_VALIDATE_ERR ack;
const TCSegment* tc_segment;
int seq_diff = (GS_RECEIVE_WINDOW + (int)TCF_get_frame_seq_num(tc_frame) - (int)gs_validate_info_.type_a_counter) % GS_RECEIVE_WINDOW;
const TCSegment* tc_segment = TCF_get_tc_segment(tc_frame);
int seq_diff = (GS_RECEIVE_WINDOW + (int)TCF_get_frame_seq_num(tc_frame) - (int)gs_validate_info_.type_a_counter) % GS_RECEIVE_WINDOW;

if (gs_validate_info_.lockout_flag) return GS_VALIDATE_ERR_IN_LOCKOUT;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* https://sma.jaxa.jp/TechDoc/Docs/JAXA-JERG-2-401.pdf
* 実装に関しては
* Blue Books: Recommended Standards: TC Space Data Link Protocol
* https://public.ccsds.org/Pubs/232x0b4.pdf
* https://public.ccsds.org/Pubs/232x0b4.pdf
* をそれぞれ参照した
*/
#ifndef GS_VALIDATE_H_
Expand Down

0 comments on commit d3a9918

Please sign in to comment.