Rev 809 | Rev 832 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 809 | Rev 826 | ||
---|---|---|---|
Line 243... | Line 243... | ||
243 | // pre-bottom line |
243 | // pre-bottom line |
244 | if ((COSD_FLAGS_RUNTIME & COSD_FLAG_STROMREC) && !(COSD_FLAGS_MODES & COSD_FLAG_FCCURRENT)) { |
244 | if ((COSD_FLAGS_RUNTIME & COSD_FLAG_STROMREC) && !(COSD_FLAGS_MODES & COSD_FLAG_FCCURRENT)) { |
245 | //write_ndigit_number_s(3, bottom_line - 1, ampere, 4, 0); |
245 | //write_ndigit_number_s(3, bottom_line - 1, ampere, 4, 0); |
246 | write_ndigit_number_u_10th(2, bottom_line - 1, ampere / 10, 4, 0); |
246 | write_ndigit_number_u_10th(2, bottom_line - 1, ampere / 10, 4, 0); |
247 | write_ndigit_number_s(10, bottom_line - 1, ampere_wasted / 10, 4, 0); |
247 | write_ndigit_number_s(10, bottom_line - 1, ampere_wasted / 10, 4, 0); |
248 | if (COSD_FLAGS_MODES & COSD_FLAG_STROMVOLT) { |
- | |
249 | write_ndigit_number_u_10th(17, bottom_line - 1, s_volt, 3, 0); |
- | |
250 | } |
248 | |
251 | } else if (COSD_FLAGS_MODES & COSD_FLAG_FCCURRENT) { |
249 | } else if (COSD_FLAGS_MODES & COSD_FLAG_FCCURRENT) { |
252 | write_ndigit_number_u_10th(2, bottom_line - 1, naviData.Current, 4, 0); |
250 | write_ndigit_number_u_10th(2, bottom_line - 1, naviData.Current, 4, 0); |
253 | write_ndigit_number_u(10, bottom_line - 1, naviData.UsedCapacity, 4, 0); |
251 | write_ndigit_number_u(10, bottom_line - 1, naviData.UsedCapacity, 4, 0); |
254 | } |
252 | } |
- | 253 | if ((COSD_FLAGS_RUNTIME & COSD_FLAG_STROMREC) && COSD_FLAGS_MODES & COSD_FLAG_STROMVOLT) { |
|
- | 254 | write_ndigit_number_u_10th(17, bottom_line - 1, s_volt, 3, 0); |
|
255 | 255 | } |
|
256 | //DEBUGwrite_ndigit_number_u(1, 5, COSD_FLAGS_MODES, 3, 0); |
256 | //DEBUGwrite_ndigit_number_u(1, 5, COSD_FLAGS_MODES, 3, 0); |
Line 257... | Line 257... | ||
257 | 257 | ||
258 | // bottom line |
258 | // bottom line |
259 | draw_battery(2, bottom_line, min_voltage, naviData.UBat, max_voltage); |
259 | draw_battery(2, bottom_line, min_voltage, naviData.UBat, max_voltage); |