X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Finput%2Ftrace32_ad.c;h=8cbd4d0721d9da1c52ff5d1b099340feed1111be;hp=a9b1ca4f53e09c9b3a02eeed912bbf8174c8291a;hb=d9251a2c9f1ca4380c27240ccca90c9f9ed46d3f;hpb=2ecc745ccb837fd990f3ef83e4aca74cffa948cc diff --git a/src/input/trace32_ad.c b/src/input/trace32_ad.c index a9b1ca4f..8cbd4d07 100644 --- a/src/input/trace32_ad.c +++ b/src/input/trace32_ad.c @@ -50,7 +50,7 @@ #define MAX_POD_COUNT 12 #define HEADER_SIZE 80 -#define TIMESTAMP_RESOLUTION ((double)0.000000000078125) /* 0.078125 ns */ +#define TIMESTAMP_RESOLUTION ((double)0.000000000078125) /* 0.078125 ns */ /* * The resolution equals a sampling freq of 12.8 GHz. That's a bit high @@ -79,7 +79,7 @@ enum { enum { AD_COMPR_NONE = 0, /* File created with /NOCOMPRESS */ - AD_COMPR_QCOMP = 6 /* File created with /COMPRESS or /QUICKCOMPRESS */ + AD_COMPR_QCOMP = 6, /* File created with /COMPRESS or /QUICKCOMPRESS */ }; struct context { @@ -253,8 +253,8 @@ static int process_header(GString *buf, struct context *inc) inc->device = device_id; inc->trigger_timestamp = RL64(buf->str + 32); - inc->compression = R8(buf->str + 48); /* Maps to the enum. */ - inc->record_mode = R8(buf->str + 55); /* Maps to the enum. */ + inc->compression = R8(buf->str + 48); /* Maps to the enum. */ + inc->record_mode = R8(buf->str + 55); /* Maps to the enum. */ inc->record_size = record_size; inc->record_count = RL32(buf->str + 60); inc->last_record = RL32S(buf->str + 64);