Replay: improved log rate detection

This commit is contained in:
Andrew Tridgell 2016-05-04 15:25:14 +10:00
parent 9da3b8db60
commit 315d3854db

View File

@ -539,6 +539,9 @@ bool Replay::find_log_info(struct log_information &info)
if (streq(type, "IMT") && strcmp(clock_source, "IMT") != 0) {
strcpy(clock_source, "IMT");
hal.console->printf("Changing clock source to %s\n", clock_source);
samplecount = 0;
prev = 0;
smallest_delta = 0;
}
if (streq(type, clock_source)) {
if (prev == 0) {