Skip to content

Commit 9d83cee

Browse files
authored
Fix: off() API not working. (#17)
This fixes #16.
1 parent d05791b commit 9d83cee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GigaDisplayRGB.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class GigaDisplayBacklight {
2828
}
2929
void cb() {
3030
static int counter = 0;
31-
if (counter > intensity) {
31+
if (counter >= intensity) {
3232
*pin = 0;
3333
} else {
3434
*pin = 1;
@@ -50,4 +50,4 @@ class GigaDisplayBacklight {
5050
int intensity;
5151
};
5252

53-
#endif
53+
#endif

0 commit comments

Comments
 (0)