]> sigrok.org Git - sigrok-cli.git/commitdiff
cli: use SR_T_RATIONAL_PERIOD
authorBert Vermeulen <redacted>
Wed, 16 May 2012 00:08:20 +0000 (02:08 +0200)
committerBert Vermeulen <redacted>
Wed, 30 May 2012 21:56:12 +0000 (23:56 +0200)
sigrok-cli.c

index 536ecced6a448cb3550d22804fbb89112f96e8a1..b5cb5af3977970b478640d16513b69c9b785963c 100644 (file)
@@ -1110,7 +1110,7 @@ static int set_dev_options(struct sr_dev *dev, GHashTable *args)
                                ret = dev->driver->dev_config_set(dev->driver_index,
                                                sr_hwcap_options[i].hwcap, &tmp_float);
                                break;
-                       case SR_T_RATIONAL:
+                       case SR_T_RATIONAL_PERIOD:
                                if ((ret = sr_parse_period(value, &tmp_rat)) != SR_OK)
                                        break;
                                ret = dev->driver->dev_config_set(dev->driver_index,