Subversion Repositories NaviCtrl

Compare Revisions

Ignore whitespace Rev 436 → Rev 437

/trunk/logging.c
71,7 → 71,7
 
u8 SD_LoggingError = 0;
 
#define LOG_FLUSH_INTERVAL 4000 // 4s //##
#define LOG_FLUSH_INTERVAL 4000 // 4s // -> and if an Error occures
 
typedef enum
{
296,7 → 296,7
static s8* logfilename = NULL; // the pointer to the logfilename
static u32 logtimer = 0, flushtimer = 0, appendtimer = 0; // the log update timer
static GPX_Document_t logfile; // the logfilehandle
static u8 part = 0, logging_active = 0;
static u8 part = 0, logging_active = 0, old_errorcode = 0;
u32 measure_time;
 
// initialize if LogDelay is zero
370,6 → 370,7
SD_LoggingError = 11;
logtimer = SetDelay(10); // try again in open logfile in 10 mili sec
}
old_errorcode = ErrorCode;
}
else
{
394,8 → 395,9
}
else // successful log
{
if(CheckDelay(flushtimer))
if(ErrorCode != old_errorcode || CheckDelay(flushtimer))
{
old_errorcode = ErrorCode;
flushtimer = SetDelay(LOG_FLUSH_INTERVAL);
fflush_(logfile.file);
}
/trunk/main.h
14,7 → 14,7
 
#define VERSION_MAJOR 0
#define VERSION_MINOR 29
#define VERSION_PATCH 3
#define VERSION_PATCH 5
// 0 = A
// 1 = B
// 2 = C
/trunk/spi_slave.c
706,7 → 706,6
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++
 
 
GPS_Navigation(&GPSData, &(ToFlightCtrl.GPSStick));
ClearFCStatusFlags = 1;
if(counter)
/trunk/uart1.c
156,9 → 156,9
"I2C Error ",
"I2C Okay ", //15
"16 ",
"17 MaxShiftSpeed",
"18 shiftspeed ",
"19 Gps speed ", // SD-Card-time
"17 ",
"18 ",
"19 ", // SD-Card-time
"EarthMagnet [%] ", //20
"Z_Speed ",
"N_Speed ",