Ich habe hier einen kleinen Denkfehler oder irgendwas passt nicht:
1 | #define SSD1306_LCDWIDTH 128
|
2 | #define SSD1306_LCDHEIGHT 64
|
3 |
|
4 | //...
|
5 |
|
6 |
|
7 | void drawRect(uint8_t px1, uint8_t py1, uint8_t px2, uint8_t py2)
|
8 | {
|
9 | if( ((px1 || px2) > SSD1306_LCDWIDTH-1) ||
|
10 | ((py1 || py2) > SSD1306_LCDHEIGHT-1) ) return;
|
11 | //....
|
12 | }
|
Wirft mir immer folgende Warnung aus:
1 | warning: comparison of constant '127' with boolean expression is always false [-Wbool-compare]
|
Woran kann das liegen? Auch wenn ich die Werte direkt eintrage kommt
diese Warnung.