SHARE
TWEET

Untitled

a guest Aug 3rd, 2013 220 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. From 509b0bdc40a66f52c516151572ece311c69b9f62 Mon Sep 17 00:00:00 2001
  2. From: Kevin Cuzner <kevin@kevincuzner.com>
  3. Date: Sat, 3 Aug 2013 01:02:15 -0600
  4. Subject: [PATCH] Changed reset to be inverted
  5.  
  6. ---
  7. avrdude/linuxspi.c | 4 ++--
  8.  1 file changed, 2 insertions(+), 2 deletions(-)
  9.  
  10. diff --git a/avrdude/linuxspi.c b/avrdude/linuxspi.c
  11. index 25272d8..af10d5c 100644
  12. --- a/avrdude/linuxspi.c
  13. +++ b/avrdude/linuxspi.c
  14. @@ -230,8 +230,8 @@ static int linuxspi_open(PROGRAMMER* pgm, char* port)
  15.          return -1;
  16.      }
  17.      
  18. -    //set reset low
  19. -    if (linuxspi_gpio_op_wr(pgm, LINUXSPI_GPIO_VALUE, pgm->pinno[PIN_AVR_RESET], "0") < 0)
  20. +    //set reset high
  21. +    if (linuxspi_gpio_op_wr(pgm, LINUXSPI_GPIO_VALUE, pgm->pinno[PIN_AVR_RESET], "1") < 0)
  22.      {
  23.          return -1;
  24.      }
  25. --
  26. 1.8.3.4
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top