vbz-fahrgastinformation icon indicating copy to clipboard operation
vbz-fahrgastinformation copied to clipboard

IR trains not displayed corretcly

Open Yaxit opened this issue 1 year ago • 0 comments

Hi, thanks for the great project, it's pretty fun. I'm playing around with it, and noticed there is an issue with IR trains. int xPos = Display::getRightAlignStartingPoint(line.c_str(), 24); seems to underestimate the length of the IR line number. From the debugging, the 16 is too large, (in comparison, and S12 is around 4) and causes overlap with the following text.

1|IR36|ojp:91036:A:H|Frick|2||L ----IR36 cx:7 r:23 x1:*** **16**,13->IR36: ----2 cx:7 r:16 x1:***

On a further notice, I'm updating the background for the line like this, but vbzRed is actually displayed as Green

    uint16_t lineColor = Display::getVbzBackgroundColor(lineRef);
    if(line.startsWith("R")){
        lineColor = Display::vbzRed;
        Serial.println("Updated Color");
    }

Yaxit avatar May 20 '23 12:05 Yaxit