1. 11 Nov, 2017 1 commit
  2. 24 Jun, 2017 1 commit
    • Uwe Hermann's avatar
      output/csv: Fix a gcc 7 compiler warning. · 317c97be
      Uwe Hermann authored
        ../src/output/csv.c: In function ‘receive’:
        ../src/output/csv.c:580:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
           *out = g_string_new(ctx->frame);
        ../src/output/csv.c:582:2: note: here
          case SR_DF_END:
  3. 09 Jun, 2017 1 commit
  4. 06 Jun, 2017 2 commits
  5. 13 May, 2017 4 commits
  6. 10 May, 2017 1 commit
    • Uwe Hermann's avatar
      output/csv: Fix a compiler warning. · 8005151b
      Uwe Hermann authored
      src/output/csv.c: In function 'dump_saved_values':
      src/output/csv.c:461:6: warning: format '%lu' expects argument of
      type 'long unsigned int', but argument 3 has type 'uint64_t' [-Wformat=]
            ctx->sample_time, ctx->value);
  7. 05 May, 2017 1 commit
  8. 07 Mar, 2017 1 commit
  9. 15 Feb, 2017 1 commit
    • Sven Schnelle's avatar
      Fix analog output display · 6ca578fe
      Sven Schnelle authored
      I've seen the following output from sigrok-cli:
      CH1: 478.720 mV
      CH1: -514 mV
      CH1: -0 V
      I added some debug, and it seems like the digits value isn't reset
      to the actual value after calling sr_analog_si_prefix_friendly():
      using 6 digits
      value2 0.478720 digits 6
      value2 -0.513536 digits 3
      value2 -0.487424 digits 0
      This commit fixes this by resetting the value to the actual value before.
      Signed-off-by: default avatarSven Schnelle <svens@stackframe.org>
  10. 07 Jan, 2017 1 commit
  11. 02 Nov, 2016 1 commit
    • Gerhard Sittig's avatar
      output/ascii: add support for user configurable character set · 0150fdca
      Gerhard Sittig authored
      Since tastes and requirements might differ, introduce support for a
      user specified character set in the construction of ASCII art graphs
      of signal levels. The syntax is "charset=<low><high>[<fall><rise>]",
      the default remains backwards compatible with existing consumers.
      In comparison to assuming a fixed character set, this change addresses
      several distinct aspects:
      Users can adjust the output for "higher visual contrast", or "straight
      lines" instead of dotted patterns, or "increased difference in height"
      for low and high signal levels, or "filled" (block like, "wall of text")
      appearance of periods with high levels. User adjustable characters are
      needed, as no single fixed set can satisfy the differing expectations.
      Perception of the output heavily depends on specific terminals and fonts
      in use.
      Then there is the issue of levels versus edges, and how their timing
      relates. By default edges are drawn at a point in time where the signal
      was sampled and was deteremined to already _have_ changed and have
      settled to the new level, which means that the position of edges in the
      resulting graph might be off by up to one sample period. Strictly
      speaking, the available set of samples only contains levels, and does
      not hint where exactly an edge might have occured. Though this might be
      considered rather nitpicky, representing the graph without edges does
      better reflect the input data, and might simplify postprocessing.
      Compare the previously only supported format (still the default, -O ascii):
      to those example alternatives:
        $ sigrok-cli -i file.sr -O ascii:charset=_\"\\/
        $ sigrok-cli -i file.sr -O ascii:charset=_\"
        $ sigrok-cli -i file.sr -O ascii:charset=_^
        $ sigrok-cli -i file.sr -O ascii:charset=_M
        $ sigrok-cli -i file.sr -O ascii:charset=_X
      Signed-off-by: default avatarGerhard Sittig <gerhard.sittig@gmx.net>
  12. 17 Oct, 2016 1 commit
  13. 24 Sep, 2016 1 commit
    • Mike Meyer's avatar
      output/csv: Add an option to output units for column labels. · cad447d2
      Mike Meyer authored
      This change tweaks the CSV output module to change the label
      setting from on/off to units/channels/off, where channels is the old
      on behavior, and units uses the meaning field to generate the column
      label - except for the generated Time column, which uses the label from
      the X axis when it's generating gnuplot output.
  14. 04 Sep, 2016 4 commits
  15. 29 Aug, 2016 1 commit
  16. 28 Aug, 2016 1 commit
  17. 26 Jun, 2016 1 commit
    • Aurelien Jacobs's avatar
      analog: add support for negative number of digits · 28c95cc6
      Aurelien Jacobs authored
      When a meter display 105.2 kΩ, libsigrok will return 105200 Ω
      but it is really valuable to know that the last 2 digits are not
      significant, so encoding.digits should be set to -2.
      This would allow a sigrok client to display 105200 as 105.2 k
      instead of 105.200 k.
  18. 17 Jun, 2016 4 commits
  19. 13 May, 2016 2 commits
    • Lars-Peter Clausen's avatar
      srzip: zip_append_analog(): Fix memory leaks · 7e2f4221
      Lars-Peter Clausen authored
      zip_append_analog() does not free most of the memory it allocates. Address
      this by moving all sanity checks that do not rely on anything else at the
      beginning of the function before any allocations are done. And then make
      sure to properly free all allocated memory on all paths leaving the
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    • Lars-Peter Clausen's avatar
      srzip: Fix handling of analog channels with index 0 · 9906dbf5
      Lars-Peter Clausen authored
      0 is a valid index for a channel. Using it as the value for the terminating
      entry of analog_index_map causes zip_append_analog() to falsely assume that
      no channel was found when a packet for a channel with index 0 was received.
      This prevents the data for the channel to be added to the sigrok session
      Instead use -1, which is not a valid channel index, as
      the terminating entry value.
      Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
  20. 23 Apr, 2016 1 commit
  21. 27 Mar, 2016 1 commit
    • Soeren Apel's avatar
      srzip: Optimize analog output saving · 0586a0ef
      Soeren Apel authored
       - Don't set capturefile if no logic channels are saved
       - Don't set total probes if no logic channels are saved
       - Save analog channels without index gaps (e.g. probe1/probe4)
  22. 24 Mar, 2016 1 commit
  23. 15 Mar, 2016 1 commit
  24. 13 Mar, 2016 4 commits
  25. 29 Nov, 2015 2 commits