Hi!

Thanks for the nice software. Here is a bug report in the form of a
patch. Why not pull-request? Because this patch does not solve the
problem but works around it. The affected code path has so many
indirections and in-band signalling that I didn't find the underlying
cause.

Support for Brymen BM869s multimeter has been broken for me for a few
years. In Fedora Linux, it last worked with the 5.10 kernel, if I
remember correctly. In Ubuntu 24, it does not work.

Sorry for the crude approach. Unfortunately, time constraints do not
allow for proper investigation.


-- 
Markko Merzin

--- ../libsigrok/src/serial_hid.c	2025-02-16 21:53:25.756498117 +0200
+++ src/serial_hid.c	2025-02-16 21:43:35.418749825 +0200
@@ -160,6 +160,10 @@
 	if (!p || !*p)
 		return NULL;
 
+	#define MY_CONFUSION_PREFIX "raw=hid/bu86x/"
+	if (g_str_has_prefix(p, MY_CONFUSION_PREFIX)) {
+		p += strlen(MY_CONFUSION_PREFIX);
+	}
 	if (g_str_has_prefix(p, SER_HID_IOKIT_PREFIX)) {
 		p += strlen(SER_HID_IOKIT_PREFIX);
 		path = g_strdup_printf("%s%s", IOKIT_PATH_PREFIX, p);
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to