From 3ed8632af28997bea1466b0e08581f59d5c7e3d3 Mon Sep 17 00:00:00 2001 From: Khang Date: Sun, 17 Aug 2025 10:39:13 -0400 Subject: [PATCH] Add th20 ending msg change --- thmsg/thmsg06.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/thmsg/thmsg06.c b/thmsg/thmsg06.c index dfa2f3c..e293a3e 100644 --- a/thmsg/thmsg06.c +++ b/thmsg/thmsg06.c @@ -207,6 +207,13 @@ static const id_format_pair_t th10_msg_ed_fmts[] = { { 0, NULL } }; +static const id_format_pair_t th20_msg_ed_fmts[] = { + { 9, "SS" }, + { 0, NULL } +}; + +/* NEWHU: 20 */ + static ssize_t thmsg_value_to_data( const value_t* value, @@ -246,6 +253,9 @@ th06_find_format(unsigned int version, int id) if (thmsg_opt_end) { switch (version) { + /* NEWHU: 20 */ + case 20: + if ((ret = find_format(th20_msg_ed_fmts, id))) break; /* fallthrough */ case 10: case 11: case 12: @@ -258,8 +268,6 @@ th06_find_format(unsigned int version, int id) case 18: case 185: case 19: - case 20: - /* NEWHU: 20 */ ret = find_format(th10_msg_ed_fmts, id); break; default: