mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 16:55:20 +03:00
Small flash saving (36bytes)
This commit is contained in:
parent
221826f457
commit
e95af52d98
3 changed files with 2 additions and 5 deletions
|
@ -792,7 +792,8 @@ void menuProcDiagAna(uint8_t event)
|
|||
for (uint8_t i=0; i<7; i++) {
|
||||
uint8_t y = 1+FH+(i/2)*FH;
|
||||
uint8_t x = i&1 ? 64+5 : 0;
|
||||
putsStrIdx(x, y, PSTR("A"), i+1, TWO_DOTS);
|
||||
putsStrIdx(x, y, PSTR("A"), i+1);
|
||||
lcd_putc(x+2*FWNUM, y, ':');
|
||||
lcd_outhex4(x+3*FW-1, y, anaIn(i));
|
||||
lcd_outdez8(x+10*FW-1, y, (int16_t)calibratedStick[CONVERT_MODE(i+1)-1]*25/256);
|
||||
}
|
||||
|
|
|
@ -469,7 +469,6 @@ void putsStrIdx(uint8_t x, uint8_t y, const pm_char *str, uint8_t idx, uint8_t a
|
|||
{
|
||||
lcd_putsAtt(x, y, str, att & ~BSS); // TODO use something else than BSS for LEADING0
|
||||
lcd_outdezNAtt(lcdLastPos, y, idx, att|LEFT, 2);
|
||||
if (att&TWO_DOTS) lcd_putc(lcdLastPos, y, ':');
|
||||
lcd_putsAtt(x, y, str, att & ~BSS); // TODO use something else than BSS for LEADING0
|
||||
}
|
||||
|
||||
|
|
|
@ -75,9 +75,6 @@
|
|||
/* telemetry flags */
|
||||
#define NO_UNIT 0x40
|
||||
|
||||
/* other flags */
|
||||
#define TWO_DOTS LEFT
|
||||
|
||||
extern uint8_t displayBuf[DISPLAY_W*DISPLAY_H/8];
|
||||
extern uint8_t lcdLastPos;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue