diff options
author | Avamander <avamander@gmail.com> | 2021-06-22 21:31:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-22 20:31:31 +0200 |
commit | 572be3e857f86047926f7ccae5a4197958580f98 (patch) | |
tree | 9f3878abd52e143da401250ff0be6b19379288d3 /src/drivers | |
parent | 20a24f8cf56551eae1202f8dc5733bd0cf61adbf (diff) |
Removed an illogical comparison from SystemInfo and St7789 driver (#449)
* Removed an illogical comparison
Diffstat (limited to 'src/drivers')
-rw-r--r-- | src/drivers/St7789.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/St7789.cpp b/src/drivers/St7789.cpp index 39218e77..0f1dc02e 100644 --- a/src/drivers/St7789.cpp +++ b/src/drivers/St7789.cpp @@ -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); |