]> sigrok.org Git - libsigrok.git/blobdiff - hardware/common/dmm/es519xx.c
es519xx: fix switching between frequency and duty cycle mode on 14 bytes chips
[libsigrok.git] / hardware / common / dmm / es519xx.c
index 67d669a584211628b3a527b7e16edcec725f1a3e..838592ed4a253e1f96e0ba14856f4e873a32e29a 100644 (file)
@@ -369,9 +369,9 @@ static void parse_flags(const uint8_t *buf, struct es519xx_info *info)
                case 0x32: /* Frequency / RPM / duty cycle */
                        if (info->packet_size == 14) {
                                if (info->is_judge)
-                                       info->is_frequency = TRUE;
-                               else
                                        info->is_duty_cycle = TRUE;
+                               else
+                                       info->is_frequency = TRUE;
                        } else {
                                if (info->is_judge)
                                        info->is_rpm = TRUE;