]> sigrok.org Git - libsigrok.git/commitdiff
scpi-pps: Fix a compiler warning.
authorUwe Hermann <redacted>
Thu, 7 May 2015 00:52:00 +0000 (02:52 +0200)
committerUwe Hermann <redacted>
Thu, 7 May 2015 00:59:28 +0000 (02:59 +0200)
    CC       src/hardware/scpi-pps/profiles.lo
  src/hardware/scpi-pps/profiles.c:67:2: warning: missing initializer
  for field 'frequency' of 'const struct channel_spec'
  [-Wmissing-field-initializers]
    { "1", { 0, 60, 0.0001 }, { 0, 25, 0.1 } },
    ^
  In file included from src/hardware/scpi-pps/profiles.c:24:0:
  src/hardware/scpi-pps/protocol.h:106:8: note: 'frequency' declared
  here
    float frequency[3];
          ^

src/hardware/scpi-pps/profiles.c

index 8b58bff442bcdc61b1fb6c815fde960d21efa1f5..02f6940a70f0595ac27981e952dfc19f942df969 100644 (file)
@@ -64,7 +64,7 @@ static const uint32_t agilent_n5700a_devopts_cg[] = {
 };
 
 static const struct channel_spec agilent_n5767a_ch[] = {
-       { "1", { 0, 60, 0.0001 }, { 0, 25, 0.1 } },
+       { "1", { 0, 60, 0.0001 }, { 0, 25, 0.1 }, FREQ_DC_ONLY },
 };
 
 static const struct channel_group_spec agilent_n5767a_cg[] = {