From 6b6266c1de91a645bd305b3f10677c3e3f9e2729 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Tue, 18 Dec 2018 20:38:13 -0500 Subject: [PATCH] spi: issue "wake from reset" as part of spiReset() Signed-off-by: Sean Cross --- spi.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spi.c b/spi.c index f9fc760..d66f627 100644 --- a/spi.c +++ b/spi.c @@ -590,6 +590,11 @@ uint8_t spiReset(struct ff_spi *spi) { spiEnd(spi); usleep(30); + + spiBegin(spi); + spiCommand(spi, 0xab); // "Resume from Deep Power-Down" command + spiEnd(spi); + return 0; }