]> sigrok.org Git - libsigrok.git/commit
siglent-sds: Fix SR_CONF_TRIGGER_SLOPE config_set() code.
authorUwe Hermann <redacted>
Fri, 16 Feb 2018 23:44:55 +0000 (00:44 +0100)
committerUwe Hermann <redacted>
Fri, 16 Feb 2018 23:51:53 +0000 (00:51 +0100)
commit2dedd64e116c86908d6106f232edbb4773cc4482
tree776fd69b2f67e40f0ac818682052c11fc9838085
parenta7f066bfca74a0918db4253dbd8b80daf42e0121
siglent-sds: Fix SR_CONF_TRIGGER_SLOPE config_set() code.

Also use "r" and "f" as trigger slope values for now, since that's
what most other drivers do currently.

This also fixes two scan-build issues:

  api.c:559:3: warning: Value stored to 'tmp_str' is never read
                  tmp_str = g_variant_get_string(data, NULL);
                  ^         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  api.c:561:9: warning: Use of memory after it is freed
                  ret = siglent_sds_config_set(sdi, "%s:TRSL %s",
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/hardware/siglent-sds/api.c