From 3b646955b99000acb981291fb8edb4efcc2b8753 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 14 May 2017 23:13:52 +0200 Subject: [PATCH] Fix swapped manufacturer/product strings the */usb_strings.txt files always assumed that the first line is the manufacturer string, followed by the product string in the second line. However, the enum strDescNum had it the other way around. Let's fix it by adjusting the enum to reality. Fixes: SYS#3591 --- firmware/libcommon/source/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/libcommon/source/usb.c b/firmware/libcommon/source/usb.c index 1321fe1e..61cefd2b 100644 --- a/firmware/libcommon/source/usb.c +++ b/firmware/libcommon/source/usb.c @@ -47,8 +47,8 @@ *------------------------------------------------------------------------------*/ #include "usb_strings_generated.h" enum strDescNum { - PRODUCT_STRING = 1, - MANUF_STR, + MANUF_STR = 1, + PRODUCT_STRING, SNIFFER_CONF_STR, CCID_CONF_STR, PHONE_CONF_STR,