Just some remarks from Cppcheck nitpicking some code fragments. No errors, no warning, just stil complains. All good!
epdiy.c/82
void epd_draw_pixel(int x, int y, uint8_t color, uint8_t* framebuffer) {
// Check rotation and move pixel around if necessary
Coord_xy coord = _rotate(x, y);
x = coord.x;
y = coord.y;
if (x < 0 || x >= epd_width()) {
return;
}
if (y < 0 || y >= epd_height()) {
return;
}
x/y can't be less 0, because coord.x/y is uint16_t.
Just some remarks from Cppcheck nitpicking some code fragments. No errors, no warning, just stil complains. All good!
epdiy.c/82
x/y can't be less 0, because coord.x/y is uint16_t.
lut.c/393
Operator '|' with one operand equal to zero is redundant. /me assumes it means s1... and Local variable 'v1' shadows outer variable
There are some "Variable 'xxxxx' can be declared as pointer to const" and "The scope of the variable 'xxxx' can be reduced. "