]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/hantek-dso/api.c
Various minor cosmetics and consistency fixes.
[libsigrok.git] / src / hardware / hantek-dso / api.c
index b309ea665ced0d970029306c78e0841ac573482d..160dbb4d52e777069807db97b30719583499b63b 100644 (file)
@@ -472,10 +472,7 @@ static int config_get(uint32_t key, GVariant **data, const struct sr_dev_inst *s
                        *data = g_variant_new_string(devc->triggersource);
                        break;
                case SR_CONF_TRIGGER_SLOPE:
-                       if (devc->triggerslope == SLOPE_POSITIVE)
-                               s = "r";
-                       else
-                               s = "f";
+                       s = (devc->triggerslope == SLOPE_POSITIVE) ? "r" : "f";
                        *data = g_variant_new_string(s);
                        break;
                case SR_CONF_HORIZ_TRIGGERPOS: