From ff2c29db3fa58015be593356313a7702b67c13f9 Mon Sep 17 00:00:00 2001 From: MCUdude Date: Fri, 2 May 2025 00:22:52 +0200 Subject: [PATCH] Use PIN_AVR_RESET --- src/linuxgpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linuxgpio.c b/src/linuxgpio.c index c408138c..e4762662 100644 --- a/src/linuxgpio.c +++ b/src/linuxgpio.c @@ -297,7 +297,7 @@ static int linuxgpio_sysfs_open(PROGRAMMER *pgm, const char *port) { // pulling the reset line down and starting the programming session int reset_pin = pgm->pinno[PIN_AVR_RESET] & PIN_MASK; if(reset_pin <= PIN_MAX && my.sysfs_fds[reset_pin] >= 0) { - pgm->setpin(pgm, reset_pin, 1); + pgm->setpin(pgm, PIN_AVR_RESET, 1); usleep(GPIO_SYSFS_OPEN_DELAY); }