OK, here it is.

Matth

On Mon, 2023-04-24 at 16:27 +0300, Vesa-Pekka Palmu wrote:
> You can send it to this mailing list.
> 
> On Mon, 24 Apr 2023, ttnp--- via sigrok-devel wrote:
> 
> > Hi together,
> > 
> > some time ago I wrote the dmm/vc96 driver.
> > No I learned that the prefixes "k" and "M" in the OHM modus are ignored.
> > I made a patch which fixes this.
> > I already send it to Gerhard Sittig but I screwed up the message text and
> > just
> > set the blank patch so it got - of course - ignored.
> > 
> > To whom should I send it in order to get it applied?
> > 
> > Regards Matth
> > 
> > 
> > 
> > _______________________________________________
> > sigrok-devel mailing list
> > sigrok-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/sigrok-devel
> > 
> 

95,98c95,101
< 	/* Bytes 0-2: Measurement mode DIO, OHM */
< 	info->is_ohm = !strncmp(buf, "OHM", 3);
< 	info->is_diode = !strncmp(buf, "DIO", 3);
< 	info->is_hfe = !strncmp(buf, "hfe", 3);
---
> 	/* Bytes 0-2: Measurement mode, except AC/DC */
> 	info->is_ohm = !strncmp(buf, "OHM", 3) ||
> 		(!strncmp(buf, "  ", 3) && info->is_ohm);
> 	info->is_diode = !strncmp(buf, "DIO", 3) ||
> 		(!strncmp(buf, "  ", 3) && info->is_volt && info->is_milli);
> 	info->is_hfe = !strncmp(buf, "hfe", 3) && !info->is_ampere && !info->is_volt &&
> 		!info->is_resistance && !info->is_diode;
122c125,126
< 	else if (!g_ascii_strcasecmp(u, "K"))
---
> 	else if (!g_ascii_strncasecmp(u, "K", 1))
> 	/* ignore case, VC96 sends wrong upper case "K" */
124c128
< 	else if (!g_ascii_strcasecmp(u, "M"))
---
> 	else if (!g_ascii_strncasecmp(u, "M", 1))
129,136c133
< 	/* Bytes 0-2: Measurement mode, except AC/DC */
< 	info->is_resistance = !strncmp(buf, "OHM", 3) ||
< 		(!strncmp(buf, "  ", 3) && info->is_ohm);
< 	info->is_diode = !strncmp(buf, "DIO", 3) ||
< 		(!strncmp(buf, "  ", 3) && info->is_volt && info->is_milli);
< 	info->is_hfe = !strncmp(buf, "hfe", 3) ||
< 		(!strncmp(buf, "  ", 3) && !info->is_ampere && !info->is_volt &&
< 		!info->is_resistance && !info->is_diode);
---
> 	sr_spew("is_kilo = %i  is_mega = %i", info->is_kilo, info->is_mega);
_______________________________________________
sigrok-devel mailing list
sigrok-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to