Преглед на файлове

Improve naming of two variables.

antirez преди 3 години
родител
ревизия
015ee09bb2
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      signal.c

+ 4 - 4
signal.c

@@ -379,13 +379,13 @@ bool decode_signal(RawSamplesBuffer *s, uint64_t len, ProtoViewMsgInfo *info) {
     uint32_t bitmap_bits_size = 4096*8;
     uint32_t bitmap_size = bitmap_bits_size/8;
 
-    /* We call the decoders with an offset a few bits before the actual
+    /* We call the decoders with an offset a few samples before the actual
      * signal detected and for a len of a few bits after its end. */
-    uint32_t before_bits = 10;
-    uint32_t after_bits = 100;
+    uint32_t before_samples = 10;
+    uint32_t after_samples = 100;
 
     uint8_t *bitmap = malloc(bitmap_size);
-    uint32_t bits = convert_signal_to_bits(bitmap,bitmap_size,s,-before_bits,len+before_bits+after_bits,s->short_pulse_dur);
+    uint32_t bits = convert_signal_to_bits(bitmap,bitmap_size,s,-before_samples,len+before_samples+after_samples,s->short_pulse_dur);
 
     if (DEBUG_MSG) { /* Useful for debugging purposes. Don't remove. */
         char *str = malloc(1024);