mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-01 11:06:04 +08:00
sdlog2: fix wrong if (facepalm!)
This commit is contained in:
@@ -1513,7 +1513,7 @@ int sdlog2_thread_main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* --- EKF2 REPLAY --- */
|
/* --- EKF2 REPLAY --- */
|
||||||
if (log_type == LOG_TYPE_ALL || LOG_TYPE_REPLAY_ONLY) {
|
if (log_type == LOG_TYPE_ALL || log_type == LOG_TYPE_REPLAY_ONLY) {
|
||||||
|
|
||||||
if (log_type == LOG_TYPE_ALL) {
|
if (log_type == LOG_TYPE_ALL) {
|
||||||
// When logging everything we are polling for sensor_combined, so
|
// When logging everything we are polling for sensor_combined, so
|
||||||
@@ -1596,7 +1596,7 @@ int sdlog2_thread_main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (log_type == LOG_TYPE_ALL || LOG_TYPE_NORMAL) {
|
if (log_type == LOG_TYPE_ALL || log_type == LOG_TYPE_NORMAL) {
|
||||||
|
|
||||||
// We poll on sensor combined, so we know it has updated just now
|
// We poll on sensor combined, so we know it has updated just now
|
||||||
// but we need to copy it again because we are re-using the buffer.
|
// but we need to copy it again because we are re-using the buffer.
|
||||||
|
|||||||
Reference in New Issue
Block a user