mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Conditional compilation added around previous pull request (multi-lines
improvement)
This commit is contained in:
parent
d0a7d748c9
commit
5b2530ba79
1 changed files with 6 additions and 2 deletions
|
@ -336,8 +336,10 @@ void lcd_putc(xcoord_t x, uint8_t y, const unsigned char c)
|
|||
|
||||
void lcd_putsnAtt(xcoord_t x, uint8_t y, const pm_char * s, uint8_t len, LcdFlags mode)
|
||||
{
|
||||
xcoord_t orig_x = x;
|
||||
uint8_t const orig_len = len;
|
||||
const xcoord_t orig_x = x;
|
||||
#if defined(CPUARM)
|
||||
const uint8_t orig_len = len;
|
||||
#endif
|
||||
bool setx = false;
|
||||
while (len--) {
|
||||
unsigned char c;
|
||||
|
@ -374,7 +376,9 @@ void lcd_putsnAtt(xcoord_t x, uint8_t y, const pm_char * s, uint8_t len, LcdFlag
|
|||
setx = true;
|
||||
}
|
||||
else if (c == 0x1E) { //NEWLINE
|
||||
#if defined(CPUARM)
|
||||
len = orig_len;
|
||||
#endif
|
||||
x = orig_x;
|
||||
y += FH;
|
||||
#if defined(CPUARM)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue