Rev 734 | Rev 736 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 734 | Rev 735 | ||
---|---|---|---|
Line 378... | Line 378... | ||
378 | Decode64(); |
378 | Decode64(); |
379 | debugData = *((DebugOut_t*) pRxData); |
379 | debugData = *((DebugOut_t*) pRxData); |
Line 380... | Line 380... | ||
380 | 380 | ||
381 | // init on first data retrival, distinguished by last battery :) |
381 | // init on first data retrival, distinguished by last battery :) |
382 | if (last_UBat == 255) { |
382 | if (last_UBat == 255) { |
383 | if (debugData.Analog[9] > 40) |
383 | if (debugData.Analog[9] > 40) { |
384 | // fix for min_UBat |
384 | // fix for min_UBat |
385 | min_UBat = debugData.Analog[9]; |
385 | min_UBat = debugData.Analog[9]; |
386 | last_UBat = debugData.Analog[9]; |
386 | last_UBat = debugData.Analog[9]; |
387 | init_cosd(last_UBat); |
387 | init_cosd(last_UBat); |