From c4a0ae01ff90287acd804bbf0b7cd3313d1f3adf Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Tue, 28 Jan 2025 16:10:11 -0500 Subject: [PATCH] Update main.c fixed numbering --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index e1a5cc93..ff9464d2 100644 --- a/main.c +++ b/main.c @@ -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