Rev 87 | Rev 92 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 87 | Rev 88 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | #include "timer.h" |
60 | #include "timer.h" |
61 | #include "uart1.h" |
61 | #include "uart1.h" |
62 | #include "kml.h" |
62 | #include "kml.h" |
63 | #include "gpx.h" |
63 | #include "gpx.h" |
64 | #include "ssc.h" |
64 | #include "ssc.h" |
- | 65 | #include "settings.h" |
|
Line 65... | Line 66... | ||
65 | 66 | ||
66 | typedef enum |
67 | typedef enum |
67 | { |
68 | { |
68 | LOGFILE_IDLE, |
69 | LOGFILE_IDLE, |
Line 80... | Line 81... | ||
80 | { |
81 | { |
81 | u32 KML_Interval; // the kml-log interval (0 = off) |
82 | u32 KML_Interval; // the kml-log interval (0 = off) |
82 | u32 GPX_Interval; // the gpx-log interval (0 = off) |
83 | u32 GPX_Interval; // the gpx-log interval (0 = off) |
83 | } LogCfg_t; |
84 | } LogCfg_t; |
Line 84... | Line 85... | ||
84 | 85 | ||
Line 85... | Line 86... | ||
85 | LogCfg_t LogCfg = {0 , 1000}; |
86 | LogCfg_t LogCfg = {500 , 1000}; |
86 | 87 | ||
87 | 88 | ||
Line 372... | Line 373... | ||
372 | 373 | ||
373 | //---------------------------------------------------------------------------------------------------- |
374 | //---------------------------------------------------------------------------------------------------- |
374 | // initialize logging |
375 | // initialize logging |
375 | void Logging_Init(void) |
376 | void Logging_Init(void) |
- | 377 | { |
|
- | 378 | LogCfg.KML_Interval = 500; //default |
|
376 | { |
379 | Settings_GetParamValue(PID_KML_LOGGING, (u16*)&LogCfg.KML_Interval); // overwrite by settings value |
- | 380 | Logging_KML(0); |
|
- | 381 | LogCfg.GPX_Interval = 0; //default |
|
377 | Logging_KML(0); |
382 | Settings_GetParamValue(PID_GPX_LOGGING, (u16*)&LogCfg.GPX_Interval); // overwrite by settings value |
378 | Logging_GPX(0); |
383 | Logging_GPX(0); |
Line 379... | Line 384... | ||
379 | } |
384 | } |
380 | 385 |