]> sigrok.org Git - libsigrok.git/blobdiff - output/output_analog.c
Add SR_ prefix for MAX_NUM_PROBES/MAX_PROBENAME_LEN.
[libsigrok.git] / output / output_analog.c
index 0eb897f7607f547b175911865e650ef8373353c1..0f60dd35795912fc2a775eae30d0546ef27d84b7 100644 (file)
@@ -212,7 +212,7 @@ static int data_bits(struct sr_output *o, const char *data_in,
        char *outbuf, c;
 
        ctx = o->internal;
-       max_linelen = MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
+       max_linelen = SR_MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
                        + ctx->samples_per_line / 8;
         /*
          * Calculate space needed for probes. Set aside 512 bytes for
@@ -298,7 +298,7 @@ static int data_hex(struct sr_output *o, const char *data_in,
        char *outbuf;
 
        ctx = o->internal;
-       max_linelen = MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
+       max_linelen = SR_MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
                        + ctx->samples_per_line / 2;
        outsize = length_in / ctx->unitsize * ctx->num_enabled_probes
                        / ctx->samples_per_line * max_linelen + 512;
@@ -363,7 +363,7 @@ static int data_ascii(struct sr_output *o, const char *data_in,
        char *outbuf;
 
        ctx = o->internal;
-       max_linelen = MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
+       max_linelen = SR_MAX_PROBENAME_LEN + 3 + ctx->samples_per_line
                        + ctx->samples_per_line / 8;
         /*
          * Calculate space needed for probes. Set aside 512 bytes for