Update main.c move sequence number

fc-jy
Alan Johnston 11 months ago committed by GitHub
parent 6c18f94d06
commit 33f5b24615
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2389,9 +2389,15 @@ void get_tlm_fc() {
source_bytes[FC_EPS + 12] = 0xff & (((unsigned long int)reset_count >> 8));
source_bytes[FC_EPS + 13] = 0xff & ((unsigned long int)reset_count);
*/
source_bytes[FC_SW + 0] = 0xff & ((unsigned long int)sequence >> 16); // Sequence number
source_bytes[FC_SW + 1] = 0xff & ((unsigned long int)sequence >> 8);
source_bytes[FC_SW + 2] = 0xff & (unsigned long int)sequence++;
// source_bytes[FC_SW + 0] = 0xff & ((unsigned long int)sequence >> 16); // Sequence number
// source_bytes[FC_SW + 1] = 0xff & ((unsigned long int)sequence >> 8);
// source_bytes[FC_SW + 2] = 0xff & (unsigned long int)sequence++;
source_bytes[46] = 0xff & ((unsigned long int)sequence >> 16);
source_bytes[47] = 0xff & ((unsigned long int)sequence >> 8);
source_bytes[48] = 0xff & (unsigned long int)sequence++;
/**/
printf("\nsource_bytes\n");
for (int i=0; i<256; i++)

Loading…
Cancel
Save

Powered by TurnKey Linux.