Removed an illogical comparison from SystemInfo and St7789 driver (#449)
* Removed an illogical comparison
This commit is contained in:
@@ -140,8 +140,9 @@ void St7789::Uninit() {
|
||||
}
|
||||
|
||||
void St7789::DrawPixel(uint16_t x, uint16_t y, uint32_t color) {
|
||||
if ((x < 0) || (x >= Width) || (y < 0) || (y >= Height))
|
||||
if (x >= Width || y >= Height) {
|
||||
return;
|
||||
}
|
||||
|
||||
SetAddrWindow(x, y, x + 1, y + 1);
|
||||
|
||||
|
Reference in New Issue
Block a user