From 89bc82b7245b2d1d720b33d8af62556b461e1743 Mon Sep 17 00:00:00 2001 From: "David E. Tiller" <3858971+dtiller@users.noreply.github.com> Date: Fri, 8 Apr 2022 13:35:57 -0400 Subject: [PATCH] Moved unit_addr closer to the beginning so it's always in the same place for sorting. --- src/eotd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eotd.c b/src/eotd.c index 94e0340..ae228d2 100644 --- a/src/eotd.c +++ b/src/eotd.c @@ -255,12 +255,12 @@ void decode_basic_r2f(uint64_t pkt, char *text, int text_size) { strlcat(text, "block=BASIC", text_size); add_comma(text, text_size); + get_r2f_unit_addr_code(pkt, text, text_size); + add_comma(text, text_size); get_r2f_dev_batt_stat(pkt, text, text_size); add_comma(text, text_size); get_r2f_msg_id_type(pkt, text, text_size); add_comma(text, text_size); - get_r2f_unit_addr_code(pkt, text, text_size); - add_comma(text, text_size); get_r2f_brake_pressure(pkt, text, text_size); add_comma(text, text_size); get_r2f_disc_bits(pkt, text, text_size); @@ -335,10 +335,10 @@ void decode_basic_f2r(uint64_t pkt, char *text, int text_size) { strlcat(text, "block=BASIC", text_size); add_comma(text, text_size); - get_f2r_msg_id_type(pkt, text, text_size); - add_comma(text, text_size); get_f2r_unit_addr_code(pkt, text, text_size); add_comma(text, text_size); + get_f2r_msg_id_type(pkt, text, text_size); + add_comma(text, text_size); get_f2r_command(pkt, text, text_size); }