Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 734 → Rev 728

/C-OSD/trunk/main.c
56,6 → 56,8
* global definitions and global vars
* ##########################################################################*/
 
volatile uint16_t setsReceived = 0;
 
volatile NaviData_t naviData;
volatile DebugOut_t debugData;
 
380,12 → 382,10
 
// init on first data retrival, distinguished by last battery :)
if (last_UBat == 255) {
if (debugData.Analog[9] > 40)
// fix for min_UBat
min_UBat = debugData.Analog[9];
last_UBat = debugData.Analog[9];
init_cosd(last_UBat);
}
// fix for min_UBat
min_UBat = debugData.Analog[9];
last_UBat = debugData.Analog[9];
init_cosd(last_UBat);
} else {
osd_fcmode();
}
397,12 → 397,10
 
// init on first data retrival, distinguished by last battery :)
if (last_UBat == 255) {
if (naviData.UBat > 40) {
// fix for min_UBat
min_UBat = naviData.UBat;
last_UBat = naviData.UBat;
init_cosd(last_UBat);
}
// fix for min_UBat
min_UBat = naviData.UBat;
last_UBat = naviData.UBat;
init_cosd(last_UBat);
} else {
osd_ncmode();
}