aboutsummaryrefslogtreecommitdiff
path: root/apps/sdlog/sdlog.c
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2012-09-10 23:06:13 +0200
committerLorenz Meier <lm@inf.ethz.ch>2012-09-10 23:06:13 +0200
commit31d028828cc109f9608a27ca7d3ea05c628154f2 (patch)
treec2514aca7df08f576be475687d22d0a648da0aae /apps/sdlog/sdlog.c
parente440fc40275fd61a76d40aae73ed9e1cb3e813b2 (diff)
downloadpx4-firmware-31d028828cc109f9608a27ca7d3ea05c628154f2.tar.gz
px4-firmware-31d028828cc109f9608a27ca7d3ea05c628154f2.tar.bz2
px4-firmware-31d028828cc109f9608a27ca7d3ea05c628154f2.zip
Comment fixes and polishing
Diffstat (limited to 'apps/sdlog/sdlog.c')
-rw-r--r--apps/sdlog/sdlog.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/apps/sdlog/sdlog.c b/apps/sdlog/sdlog.c
index 3099a21a1..ab5f5c2a8 100644
--- a/apps/sdlog/sdlog.c
+++ b/apps/sdlog/sdlog.c
@@ -1,7 +1,7 @@
/****************************************************************************
*
* Copyright (C) 2012 PX4 Development Team. All rights reserved.
- * Author: @author Example User <mail@example.com>
+ * Author: Lorenz Meier <lm@inf.ethz.ch>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -34,6 +34,8 @@
/**
* @file sdlog.c
+ * @author Lorenz Meier <lm@inf.ethz.ch>
+ *
* Simple SD logger for flight data
*/
@@ -64,12 +66,12 @@ static const int MAX_NO_LOGFOLDER = 999; /**< Maximum number of log folders */
static const char *mountpoint = "/fs/microsd";
/**
- * Deamon management function.
+ * SD log management function.
*/
__EXPORT int sdlog_main(int argc, char *argv[]);
/**
- * Mainloop of deamon.
+ * Mainloop of sd log deamon.
*/
int sdlog_thread_main(int argc, char *argv[]);
@@ -94,7 +96,7 @@ usage(const char *reason)
}
/**
- * The deamon app only briefly exists to start
+ * The sd log deamon app only briefly exists to start
* the background job. The stack size assigned in the
* Makefile does only apply to this management task.
*
@@ -156,7 +158,7 @@ int create_logfolder(char* folder_path) {
} else if (mkdir_ret == -1) {
/* folder exists already */
- foldernumber++; // to try next time
+ foldernumber++;
continue;
} else {