We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb540b8 commit d449003Copy full SHA for d449003
1 file changed
src/SparkFun_Qwiic_OLED.h
@@ -744,8 +744,8 @@ template <typename DeviceType> class QwiicOLEDBaseClass : public Print // NOTE:
744
745
void setCursor(uint8_t x, uint8_t y)
746
{
747
-
748
- if (x < 0 || x >= m_device.width() || y < 0 || y >= m_device.height())
+ // Note: x < 0 and y < 0 are also illegal but are not possible with uint8_t arguments
+ if (x >= m_device.width() || y >= m_device.height())
749
return;
750
751
m_cursorX = x;
0 commit comments