Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2041 → Rev 2040

/C-OSD/trunk/main.c
368,13 → 368,12
rxd_buffer_locked = 0;
 
// init on first data retrival, distinguished by last battery :)
if (!(COSD_FLAGS_RUNTIME & COSD_OSD_STARTED)) {
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);
COSD_FLAGS_RUNTIME |= COSD_OSD_STARTED;
}
} else {
osd_fcmode();
397,13 → 396,12
#endif
 
// init on first data retrival, distinguished by last battery :)
if (!(COSD_FLAGS_RUNTIME & COSD_OSD_STARTED)) {
if (last_UBat == 255) {
if (naviData.UBat > 40) {
// fix for min_UBat
min_UBat = naviData.UBat;
last_UBat = naviData.UBat;
init_cosd(last_UBat);
COSD_FLAGS_RUNTIME |= COSD_OSD_STARTED;
}
} else {
osd_ncmode();