Replay: remove unused variables

Also avoids segmentation fault on exit
This commit is contained in:
Peter Barker 2017-02-23 17:18:47 +11:00
parent 64d4e094fb
commit f5c89117f6
2 changed files with 0 additions and 3 deletions

View File

@ -796,7 +796,6 @@ void Replay::loop()
if (!logreader.update(type)) {
::printf("End of log at %.1f seconds\n", AP_HAL::millis()*0.001f);
fclose(plotf);
flush_and_exit();
}

View File

@ -120,8 +120,6 @@ private:
LogReader logreader{_vehicle.ahrs, _vehicle.ins, _vehicle.barometer, _vehicle.compass, _vehicle.gps, _vehicle.airspeed, _vehicle.dataflash, nottypes};
FILE *plotf;
FILE *plotf2;
FILE *ekf1f;
FILE *ekf2f;
FILE *ekf3f;