1
0
Fork 0
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:
Steve Evans 2023-04-20 23:15:04 +01:00 committed by GitHub
parent 3167bf756c
commit 445758f3ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 101 additions and 101 deletions

View file

@ -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;
}