diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-15 20:07:32 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-11-15 20:07:32 +0100 |
commit | 18dc5e342905f6171b54adba6de8a27d65d62ab2 (patch) | |
tree | 71da056a1043a2ee50db2754af6f0eb87bf9d357 | |
parent | e2551d491754b752b8b835a302acaf3f4cf1f9d6 (diff) | |
download | px4-firmware-18dc5e342905f6171b54adba6de8a27d65d62ab2.tar.gz px4-firmware-18dc5e342905f6171b54adba6de8a27d65d62ab2.tar.bz2 px4-firmware-18dc5e342905f6171b54adba6de8a27d65d62ab2.zip |
Fix compile warning in MAVLink app
-rw-r--r-- | src/modules/mavlink/mavlink_messages.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/mavlink/mavlink_messages.cpp b/src/modules/mavlink/mavlink_messages.cpp index b4911427f..bed915bbe 100644 --- a/src/modules/mavlink/mavlink_messages.cpp +++ b/src/modules/mavlink/mavlink_messages.cpp @@ -382,11 +382,11 @@ protected: clock_gettime(CLOCK_REALTIME, &ts); /* use GPS time for log file naming, e.g. /fs/microsd/2014-01-19/19_37_52.bin */ time_t gps_time_sec = ts.tv_sec + (ts.tv_nsec / 1e9); - struct tm t; - gmtime_r(&gps_time_sec, &t); + struct tm tt; + gmtime_r(&gps_time_sec, &tt); // XXX we do not want to interfere here with the SD log app - strftime(log_file_name, sizeof(log_file_name), "msgs_%Y_%m_%d_%H_%M_%S.txt", &t); + strftime(log_file_name, sizeof(log_file_name), "msgs_%Y_%m_%d_%H_%M_%S.txt", &tt); snprintf(log_file_path, sizeof(log_file_path), "/fs/microsd/%s", log_file_name); fp = fopen(log_file_path, "ab"); } |