mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Fix handling of attribute byte (#12701)
This commit is contained in:
parent
3167bf756c
commit
445758f3ec
12 changed files with 101 additions and 101 deletions
|
@ -119,9 +119,9 @@ static int writeString(displayPort_t *displayPort, uint8_t col, uint8_t row, uin
|
|||
buf[0] = MSP_DP_WRITE_STRING;
|
||||
buf[1] = row;
|
||||
buf[2] = col;
|
||||
buf[3] = displayPortProfileMsp()->fontSelection[attr] & ~DISPLAYPORT_MSP_ATTR_BLINK & DISPLAYPORT_MSP_ATTR_MASK;
|
||||
buf[3] = displayPortProfileMsp()->fontSelection[attr & (DISPLAYPORT_SEVERITY_COUNT - 1)] & DISPLAYPORT_MSP_ATTR_FONT;
|
||||
|
||||
if (attr & DISPLAYPORT_ATTR_BLINK) {
|
||||
if (attr & DISPLAYPORT_BLINK) {
|
||||
buf[3] |= DISPLAYPORT_MSP_ATTR_BLINK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue