mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 08:45:36 +03:00
MAX7456 - Cleanups.
This commit is squashed from the following commits: MAX7456 - Calculate buffer offset only once per string. MAX7456 - Avoid duplicate addition by using second loop variable. MAX7456 - Rename 'buff' to 'input' for clarity. > There's two 'buffers', now the other variable names make more sense. MAX7456 - Use consistent variable names. > Use `text` instead of `s` and `input`.
This commit is contained in:
parent
192f2b1734
commit
6c53ca2552
5 changed files with 11 additions and 10 deletions
|
@ -80,11 +80,11 @@ void displaySetXY(displayPort_t *instance, uint8_t x, uint8_t y)
|
|||
instance->posY = y;
|
||||
}
|
||||
|
||||
int displayWrite(displayPort_t *instance, uint8_t x, uint8_t y, uint8_t attr, const char *s)
|
||||
int displayWrite(displayPort_t *instance, uint8_t x, uint8_t y, uint8_t attr, const char *text)
|
||||
{
|
||||
instance->posX = x + strlen(s);
|
||||
instance->posX = x + strlen(text);
|
||||
instance->posY = y;
|
||||
return instance->vTable->writeString(instance, x, y, attr, s);
|
||||
return instance->vTable->writeString(instance, x, y, attr, text);
|
||||
}
|
||||
|
||||
int displayWriteChar(displayPort_t *instance, uint8_t x, uint8_t y, uint8_t attr, uint8_t c)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue