Skip to content

Commit

Permalink
Merge pull request #76 from markbirss/markbirss-patch-1
Browse files Browse the repository at this point in the history
Optimisation for code
  • Loading branch information
vroland committed Apr 12, 2021
2 parents 5901b49 + 3a47714 commit ff69d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/terminal/main/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -3033,7 +3033,7 @@ const uint8_t nibble_inversion_lut[256] = {

static void invert_framebuffer(uint8_t* fb) {
for (int i=0; i < EPD_WIDTH / 2 * EPD_HEIGHT; i++) {
fb[i] = nibble_inversion_lut[fb[i]];
fb[i] ^= 0xFF;
}
}

Expand Down

0 comments on commit ff69d4b

Please sign in to comment.