aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/Spi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Spi.cpp')
-rw-r--r--src/drivers/Spi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/Spi.cpp b/src/drivers/Spi.cpp
index e477622b..c85b90c1 100644
--- a/src/drivers/Spi.cpp
+++ b/src/drivers/Spi.cpp
@@ -27,7 +27,8 @@ bool Spi::WriteCmdAndBuffer(const uint8_t* cmd, size_t cmdSize, const uint8_t* d
}
bool Spi::Init() {
- nrf_gpio_pin_set(pinCsn); /* disable Set slave select (inactive high) */
+ nrf_gpio_cfg_output(pinCsn);
+ nrf_gpio_pin_set(pinCsn);
return true;
}