diff --git a/main.c b/main.c index 836e0d53..e1a5cc93 100644 --- a/main.c +++ b/main.c @@ -2312,7 +2312,7 @@ void get_tlm_fc() { 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[14] = 0xff & ((unsigned long int)reset_count >> 8)); + 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 source_bytes[51] = 0xff & ((unsigned long int)sequence >> 8);