From adde11b099ff5dad176e410279d21feac39d2c7e Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Tue, 28 Sep 2010 19:21:16 -0400 Subject: Fix HardwareSPI to pass SPI modes for CPOL and CPHA --- wirish/comm/HardwareSPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wirish/comm') 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); } /** -- cgit v1.2.3