From 671adab8ad99629ac9b80dda4c9fabf47f0ecaf5 Mon Sep 17 00:00:00 2001 From: Marco Jassmann Date: Wed, 26 Feb 2020 12:29:55 +0100 Subject: [PATCH] Corrected constant name in spiClose from PI_I2C_CLOSED to PI_SPI_CLOSED --- pigpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pigpio.c b/pigpio.c index 409b981..033213c 100644 --- a/pigpio.c +++ b/pigpio.c @@ -4768,7 +4768,7 @@ int spiClose(unsigned handle) if (spiInfo[handle].state != PI_SPI_OPENED) SOFT_ERROR(PI_BAD_HANDLE, "bad handle (%d)", handle); - spiInfo[handle].state = PI_I2C_CLOSED; + spiInfo[handle].state = PI_SPI_CLOSED; if (!spiAnyOpen(spiInfo[handle].flags)) spiTerm(spiInfo[handle].flags); /* terminate on last close */