Subversion Repositories Projects

Rev

Rev 1951 | Rev 2039 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1951 Rev 2009
Line 361... Line 361...
361
        }
361
        }
362
        if (rxd_buffer_locked) {
362
        if (rxd_buffer_locked) {
363
#if FCONLY
363
#if FCONLY
364
            if (rxd_buffer[2] == 'D') { // FC Data
364
            if (rxd_buffer[2] == 'D') { // FC Data
365
                Decode64();
365
                Decode64();
366
                debugData = *((str_DebugOut*)pRxData);
366
                //debugData = *((str_DebugOut*)pRxData);
-
 
367
                                memcpy((char*)(&debugData), (char*)pRxData, sizeof(str_DebugOut));
-
 
368
                                rxd_buffer_locked = 0;
Line 367... Line 369...
367
 
369
 
368
                // init on first data retrival, distinguished by last battery :)
370
                // init on first data retrival, distinguished by last battery :)
369
                if (last_UBat == 255) {
371
                if (last_UBat == 255) {
370
                    if (debugData.Analog[9] > 40) {
372
                    if (debugData.Analog[9] > 40) {
Line 375... Line 377...
375
                    }
377
                    }
376
                } else {
378
                } else {
377
                    osd_fcmode();
379
                    osd_fcmode();
378
                }
380
                }
379
                seconds_since_last_data = 0;
381
                seconds_since_last_data = 0;
-
 
382
            } else {                   
-
 
383
                                rxd_buffer_locked = 0;
380
            }
384
                        }
381
#else
385
#else
382
            if (rxd_buffer[2] == 'O') { // NC OSD Data
386
            if (rxd_buffer[2] == 'O') { // NC OSD Data
383
                Decode64();
387
                Decode64();
384
                //naviData = *((NaviData_t*)pRxData);
388
                //naviData = *((NaviData_t*)pRxData);