Skip to content
Snippets Groups Projects
Commit 3759e513 authored by Ivan Grokhotkov's avatar Ivan Grokhotkov
Browse files

Fix operator precedence error in drawVerticalLine

parent 763a6712
No related branches found
No related tags found
No related merge requests found
......@@ -278,7 +278,7 @@ void OLEDDisplay::drawVerticalLine(int16_t x, int16_t y, int16_t length) {
}
if (length > 0) {
drawBit = (1 << length & 7) - 1;
drawBit = (1 << (length & 7)) - 1;
switch (color) {
case WHITE: *bufferPtr |= drawBit; break;
case BLACK: *bufferPtr &= drawBit; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment