Skip to content

Commit c00aa10

Browse files
committed
Add microseconds to OOK pulse data outputs
1 parent 7751b57 commit c00aa10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cmake/Modules/FindLibUSB.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ set(LibUSB_VERSION ${PC_LibUSB_VERSION})
4444
include(FindPackageHandleStandardArgs)
4545
# handle the QUIETLY and REQUIRED arguments and set LibUSB_FOUND to TRUE
4646
# if all listed variables are TRUE
47-
# Note that `FOUND_VAR LibRTLSDR_FOUND` is needed for cmake 3.2 and older.
47+
# Note that `FOUND_VAR LibUSB_FOUND` is needed for cmake 3.2 and older.
4848
find_package_handle_standard_args(LibUSB
4949
FOUND_VAR LibUSB_FOUND
5050
REQUIRED_VARS LibUSB_LIBRARY LibUSB_INCLUDE_DIR

src/pulse_data.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void pulse_data_print_vcd_header(FILE *file, uint32_t sample_rate)
8585
timescale = "1 us";
8686
else
8787
timescale = "100 ns";
88-
chk_ret(fprintf(file, "$date %s $end\n", format_time_str(time_str, NULL, 0, 0)));
88+
chk_ret(fprintf(file, "$date %s $end\n", usecs_time_str(time_str, NULL, 0, 0)));
8989
chk_ret(fprintf(file, "$version rtl_433 0.1.0 $end\n"));
9090
chk_ret(fprintf(file, "$comment Acquisition at %s Hz $end\n", nice_freq(sample_rate)));
9191
chk_ret(fprintf(file, "$timescale %s $end\n", timescale));
@@ -176,7 +176,7 @@ void pulse_data_print_pulse_header(FILE *file)
176176
chk_ret(fprintf(file, ";version 1\n"));
177177
chk_ret(fprintf(file, ";timescale 1us\n"));
178178
// chk_ret(fprintf(file, ";samplerate %u\n", data->sample_rate));
179-
chk_ret(fprintf(file, ";created %s\n", format_time_str(time_str, NULL, 1, 0)));
179+
chk_ret(fprintf(file, ";created %s\n", usecs_time_str(time_str, NULL, 1, 0)));
180180
}
181181

182182
void pulse_data_dump(FILE *file, pulse_data_t const *data)
@@ -187,7 +187,7 @@ void pulse_data_dump(FILE *file, pulse_data_t const *data)
187187

188188
char time_str[LOCAL_TIME_BUFLEN];
189189

190-
chk_ret(fprintf(file, ";received %s\n", format_time_str(time_str, NULL, 1, 0)));
190+
chk_ret(fprintf(file, ";received %s\n", usecs_time_str(time_str, NULL, 1, 0)));
191191
if (data->fsk_f2_est) {
192192
chk_ret(fprintf(file, ";fsk %u pulses\n", data->num_pulses));
193193
chk_ret(fprintf(file, ";freq1 %.0f\n", data->freq1_hz));

0 commit comments

Comments
 (0)