Advertisement
Toxus

Adafruit-RPi-LCD Patch

Feb 22nd, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.80 KB | None | 0 0
  1. diff --git a/main.c b/main.c
  2. index 5e79b8f..8169694 100644
  3. --- a/main.c
  4. +++ b/main.c
  5. @@ -70,16 +70,16 @@ int main(int argc, char *const *argv)
  6.          LCD_cursor_move(-1);
  7.          optind = optind_old;
  8.      } else if (!lcd_off) {
  9. -        int c;
  10. -        int n = 0;
  11. -        while ((c = getchar()) != EOF) {
  12. -            if (n == LCD_LENGTH) {
  13. -                LCD_putchar('\n');
  14. -                n = 0;
  15. -            }
  16. -            LCD_putchar(c);
  17. -            n++;
  18. -        }
  19. +       // int c;
  20. +       // int n = 0;
  21. +       // while ((c = getchar()) != EOF) {
  22. +       //     if (n == LCD_LENGTH) {
  23. +       //         LCD_putchar('\n');
  24. +       //         n = 0;
  25. +       //     }
  26. +       //     LCD_putchar(c);
  27. +       //     n++;
  28. +       // }
  29.      } else {
  30.          LCD_off();
  31.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement