aboutsummaryrefslogtreecommitdiffstats
path: root/wirish
diff options
context:
space:
mode:
Diffstat (limited to 'wirish')
-rw-r--r--wirish/comm/HardwareSPI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/wirish/comm/HardwareSPI.cpp b/wirish/comm/HardwareSPI.cpp
index 5d04ddf..20090f5 100644
--- a/wirish/comm/HardwareSPI.cpp
+++ b/wirish/comm/HardwareSPI.cpp
@@ -104,7 +104,7 @@ void HardwareSPI::begin(SPIFrequency freq, uint32 endianness, uint32 mode) {
prescaleFactors[freq + 1] :
prescaleFactors[freq];
- spi_init(spi_num, prescale, endianness, 0);
+ spi_init(spi_num, prescale, endianness, mode);
}
/**