]> sigrok.org Git - libsigrok.git/commitdiff
serial-dmm: comment nit on the UART bitrate for ES519xx chips
authorGerhard Sittig <redacted>
Sat, 5 Nov 2016 17:01:43 +0000 (18:01 +0100)
committerUwe Hermann <redacted>
Sun, 6 Nov 2016 13:43:50 +0000 (14:43 +0100)
Factor out identical comments on the UART bitrate of ES519xx based
multimeters. These probably got copied from the first item as of 2012
when new items were added in 2014 (the added devices were from the
same vendor and rebadged).

Expand on the fact that the bitrate still is within spec, and does not
harm at all. Strictly speaking the comment could get dropped.

src/hardware/serial-dmm/api.c

index aaf0066c75b2d339a769f68305d11588751d139a..a9f9cff81fcac132c498d1112317c27a7e052eae 100644 (file)
@@ -263,16 +263,20 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers,
                sr_es519xx_2400_11b_packet_valid, sr_es519xx_2400_11b_parse,
                NULL
        ),
+       /*
+        * Note: ES51922 and ES51986 baudrate is actually 19230. This is
+        * "out" by .15%, and so is well within the typical 1% margin
+        * that is considered acceptable in UART communication, and thus
+        * should not cause an issue.
+        */
        DMM(
                "tenma-72-7750-ser", es519xx,
-               /* Note: ES51986 baudrate is actually 19230! */
                "Tenma", "72-7750 (UT-D02 cable)", "19200/7o1/rts=0/dtr=1",
                19200, ES519XX_11B_PACKET_SIZE, 0, 0, NULL,
                sr_es519xx_19200_11b_packet_valid, sr_es519xx_19200_11b_parse,
                NULL
        ),
        DMM(
-               /* Note: ES51986 baudrate is actually 19230! */
                "uni-t-ut60g-ser", es519xx,
                "UNI-T", "UT60G (UT-D02 cable)", "19200/7o1/rts=0/dtr=1",
                19200, ES519XX_11B_PACKET_SIZE, 0, 0, NULL,
@@ -281,7 +285,6 @@ SR_REGISTER_DEV_DRIVER_LIST(serial_dmm_drivers,
        ),
        DMM(
                "uni-t-ut61e-ser", es519xx,
-               /* Note: ES51922 baudrate is actually 19230! */
                "UNI-T", "UT61E (UT-D02 cable)", "19200/7o1/rts=0/dtr=1",
                19200, ES519XX_14B_PACKET_SIZE, 0, 0, NULL,
                sr_es519xx_19200_14b_packet_valid, sr_es519xx_19200_14b_parse,