Skip to content

Commit b37797f

Browse files
authored
Merge pull request #131 from khang06/th20
Add th20 ending msg change
2 parents b89e3ff + 3ed8632 commit b37797f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

thmsg/thmsg06.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,13 @@ static const id_format_pair_t th10_msg_ed_fmts[] = {
207207
{ 0, NULL }
208208
};
209209

210+
static const id_format_pair_t th20_msg_ed_fmts[] = {
211+
{ 9, "SS" },
212+
{ 0, NULL }
213+
};
214+
215+
/* NEWHU: 20 */
216+
210217
static ssize_t
211218
thmsg_value_to_data(
212219
const value_t* value,
@@ -246,6 +253,9 @@ th06_find_format(unsigned int version, int id)
246253

247254
if (thmsg_opt_end) {
248255
switch (version) {
256+
/* NEWHU: 20 */
257+
case 20:
258+
if ((ret = find_format(th20_msg_ed_fmts, id))) break; /* fallthrough */
249259
case 10:
250260
case 11:
251261
case 12:
@@ -258,8 +268,6 @@ th06_find_format(unsigned int version, int id)
258268
case 18:
259269
case 185:
260270
case 19:
261-
case 20:
262-
/* NEWHU: 20 */
263271
ret = find_format(th10_msg_ed_fmts, id);
264272
break;
265273
default:

0 commit comments

Comments
 (0)