Add missing variable initialisation.
Signed-off-by: Jeroen Domburg <jeroen@espressif.com>
This commit is contained in:
parent
8e467801bc
commit
33500f2561
1 changed files with 2 additions and 1 deletions
|
@ -502,6 +502,7 @@ static void IRAM_ATTR spi_intr(void *arg)
|
||||||
//We have a transaction. Send it.
|
//We have a transaction. Send it.
|
||||||
spi_device_t *dev=host->device[i];
|
spi_device_t *dev=host->device[i];
|
||||||
host->cur_trans=trans;
|
host->cur_trans=trans;
|
||||||
|
host->cur_cs=i;
|
||||||
//We should be done with the transmission.
|
//We should be done with the transmission.
|
||||||
assert(host->hw->cmd.usr == 0);
|
assert(host->hw->cmd.usr == 0);
|
||||||
|
|
||||||
|
@ -510,7 +511,7 @@ static void IRAM_ATTR spi_intr(void *arg)
|
||||||
trans->rxlength=trans->length;
|
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) {
|
if (i!=prevCs) {
|
||||||
//Assumes a hardcoded 80MHz Fapb for now. ToDo: figure out something better once we have
|
//Assumes a hardcoded 80MHz Fapb for now. ToDo: figure out something better once we have
|
||||||
//clock scaling working.
|
//clock scaling working.
|
||||||
|
|
Loading…
Reference in a new issue