Rev 528 | Rev 685 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 528 | Rev 677 | ||
---|---|---|---|
Line 371... | Line 371... | ||
371 | 371 | ||
372 | // init on first data retrival, distinguished by last battery :) |
372 | // init on first data retrival, distinguished by last battery :) |
373 | if (last_UBat == 255) { |
373 | if (last_UBat == 255) { |
374 | // fix for min_UBat |
374 | // fix for min_UBat |
- | 375 | min_UBat = debugData.Analog[9]; |
|
375 | min_UBat = debugData.Analog[9]; |
376 | last_UBat = debugData.Analog[9]; |
376 | init_cosd(debugData.Analog[9]); |
377 | init_cosd(last_UBat); |
377 | } |
378 | } else { |
- | 379 | osd_fcmode(); |
|
378 | osd_fcmode(); |
380 | } |
379 | } |
381 | } |
380 | #else |
382 | #else |
381 | if (rxd_buffer[2] == 'O') { // NC OSD Data |
383 | if (rxd_buffer[2] == 'O') { // NC OSD Data |
382 | Decode64(); |
384 | Decode64(); |
Line 383... | Line 385... | ||
383 | naviData = *((NaviData_t*) pRxData); |
385 | naviData = *((NaviData_t*) pRxData); |
384 | 386 | ||
385 | // init on first data retrival, distinguished by last battery :) |
387 | // init on first data retrival, distinguished by last battery :) |
386 | if (last_UBat == 255) { |
388 | if (last_UBat == 255) { |
- | 389 | // fix for min_UBat |
|
387 | // fix for min_UBat |
390 | min_UBat = naviData.UBat; |
388 | min_UBat = naviData.UBat; |
391 | last_UBat = naviData.UBat; |
389 | init_cosd(naviData.UBat); |
392 | init_cosd(last_UBat); |
- | 393 | } else { |
|
390 | } |
394 | osd_ncmode(); |
391 | osd_ncmode(); |
395 | } |
392 | } |
396 | } |
393 | #endif |
397 | #endif |
394 | rxd_buffer_locked = 0; |
398 | rxd_buffer_locked = 0; |