From 33500f256194bc65870323a2368563c4d3769e9e Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 21 Jan 2017 15:39:36 +0000 Subject: [PATCH] Add missing variable initialisation. Signed-off-by: Jeroen Domburg --- components/driver/spi_master.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/driver/spi_master.c b/components/driver/spi_master.c index 6162edba36..f37f7aaf19 100644 --- a/components/driver/spi_master.c +++ b/components/driver/spi_master.c @@ -502,6 +502,7 @@ static void IRAM_ATTR spi_intr(void *arg) //We have a transaction. Send it. spi_device_t *dev=host->device[i]; host->cur_trans=trans; + host->cur_cs=i; //We should be done with the transmission. assert(host->hw->cmd.usr == 0); @@ -510,7 +511,7 @@ static void IRAM_ATTR spi_intr(void *arg) trans->rxlength=trans->length; } - //Reconfigure accoding to device settings, but only if we change CSses. + //Reconfigure according to device settings, but only if we change CSses. if (i!=prevCs) { //Assumes a hardcoded 80MHz Fapb for now. ToDo: figure out something better once we have //clock scaling working. -- 2.40.0