Subversion Repositories NaviCtrl

Rev

Rev 119 | Rev 159 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 146
Line 148... Line 148...
148
        static  logfilestate_t logfilestate = LOGFILE_IDLE; // the current logfilestate
148
        static  logfilestate_t logfilestate = LOGFILE_IDLE; // the current logfilestate
149
        static  s8* logfilename = NULL;                                         // the pointer to the logfilename
149
        static  s8* logfilename = NULL;                                         // the pointer to the logfilename
150
        static  u32 logtimer = 0, flushtimer = 0;               // the log update timer
150
        static  u32 logtimer = 0, flushtimer = 0;               // the log update timer
151
        static  KML_Document_t logfile;                                         // the logfilehandle
151
        static  KML_Document_t logfile;                                         // the logfilehandle
Line 152... Line 152...
152
 
152
 
153
        // initialize if LogDelay os zero
153
        // initialize if LogDelay is zero
154
        if(!LogDelay)
154
        if(!LogDelay)
155
        {
155
        {
156
                switch(logfilestate)
156
                switch(logfilestate)
157
                {
157
                {
Line 399... Line 399...
399
void Logging_Init(void)
399
void Logging_Init(void)
400
{
400
{
401
        LogCfg.KML_Interval = 500; //default
401
        LogCfg.KML_Interval = 500; //default
402
        Settings_GetParamValue(PID_KML_LOGGING, (u16*)&LogCfg.KML_Interval); // overwrite by settings value
402
        Settings_GetParamValue(PID_KML_LOGGING, (u16*)&LogCfg.KML_Interval); // overwrite by settings value
403
        Logging_KML(0); // initialize
403
        Logging_KML(0); // initialize
404
        LogCfg.GPX_Interval = 1000; //default
404
        LogCfg.GPX_Interval = 0; //default
405
        Settings_GetParamValue(PID_GPX_LOGGING, (u16*)&LogCfg.GPX_Interval); // overwrite by settings value
405
        Settings_GetParamValue(PID_GPX_LOGGING, (u16*)&LogCfg.GPX_Interval); // overwrite by settings value
406
        Logging_GPX(0); // initialize
406
        Logging_GPX(0); // initialize
407
}
407
}
Line 408... Line 408...
408
 
408