Update main.c fixed numbering

fc-a
Alan Johnston 11 months ago committed by GitHub
parent 9897739746
commit c4a0ae01ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2310,8 +2310,8 @@ void get_tlm_fc() {
source_bytes[10] = 0xff & (((unsigned int)(voltage[map[BAT]] * 1000) >> 8));
source_bytes[11] = 0xff & ((unsigned int)(voltage[map[BAT]] * 1000));
source_bytes[10] = 0xff & (((unsigned int)(current[map[BAT]] * 100) >> 8));
source_bytes[11] = 0xff & ((unsigned int)(current[map[BAT]] * 100));
source_bytes[12] = 0xff & (((unsigned int)(current[map[BAT]] * 100) >> 8));
source_bytes[13] = 0xff & ((unsigned int)(current[map[BAT]] * 100));
source_bytes[14] = 0xff & (((unsigned long int)reset_count >> 8));
source_bytes[15] = 0xff & ((unsigned long int)reset_count);
source_bytes[50] = 0xff & ((unsigned long int)sequence >> 16); // Sequence number

Loading…
Cancel
Save

Powered by TurnKey Linux.