From: Marco Jassmann Date: Wed, 26 Feb 2020 11:29:55 +0000 (+0100) Subject: Corrected constant name in spiClose from PI_I2C_CLOSED to PI_SPI_CLOSED X-Git-Tag: archive/raspbian/1.78-1+rpi1^2~4^2~8^2~3^2^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=671adab8ad99629ac9b80dda4c9fabf47f0ecaf5;p=pigpio.git Corrected constant name in spiClose from PI_I2C_CLOSED to PI_SPI_CLOSED --- 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 */