From: Gerhard Sittig Date: Sun, 13 Sep 2020 14:35:59 +0000 (+0200) Subject: input/csv: provide double precision values to session feed X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=ce3fe379693f7ef113e027a674946e07f340a377 input/csv: provide double precision values to session feed Common conversion support code accepts double precision input data for analog packets. Use the 'double' data type in the CSV input module to feed sample data to the session bus. --- diff --git a/src/input/csv.c b/src/input/csv.c index ca451bc4..1c4a5d7f 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -136,9 +136,6 @@ /* * TODO * - * - Unbreak analog data when submitted in the 'double' data type. This - * was observed with sigrok-cli screen output. Is analog.encoding->unitsize - * not handled appropriately? Is it a sigrok-cli or libsigrok issue? * - Add a test suite for input modules in general, and CSV in specific? * Becomes more important with the multitude of options and their * interaction. Could cover edge cases (BOM presence, line termination @@ -146,7 +143,7 @@ * samplerates, etc). */ -typedef float csv_analog_t; /* 'double' currently is flawed. */ +typedef double csv_analog_t; /* Single column formats. */ enum single_col_format {