spi: issue "wake from reset" as part of spiReset()

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2018-12-18 20:38:13 -05:00
parent 4e411774c0
commit 6b6266c1de

5
spi.c
View File

@ -590,6 +590,11 @@ uint8_t spiReset(struct ff_spi *spi) {
spiEnd(spi); spiEnd(spi);
usleep(30); usleep(30);
spiBegin(spi);
spiCommand(spi, 0xab); // "Resume from Deep Power-Down" command
spiEnd(spi);
return 0; return 0;
} }