Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2040 → Rev 2041

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