Skip to content

Commit 344593e

Browse files
committed
Change hardcoded imu to flight log section
1 parent 991e31a commit 344593e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/flightlog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function exportFlightLogToCSVs(flightLog) {
99
}
1010

1111
for (let flightLogSection of flightLogSections) {
12-
fs.writeFile(`${flightLogDir}/${flightLogSection}.csv`, objectArrayToCSV(flightLog.imu), "utf8", function (err) {
12+
fs.writeFile(`${flightLogDir}/${flightLogSection}.csv`, objectArrayToCSV(flightLog[flightLogSection]), "utf8", function (err) {
1313
if (err) {
1414
console.log("An error occurred while writing CSV object to file.");
1515
return console.log(err);

0 commit comments

Comments
 (0)