Skip to content

Commit adde11b

Browse files
committed
Fix HardwareSPI to pass SPI modes for CPOL and CPHA
1 parent 7b72956 commit adde11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wirish/comm/HardwareSPI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void HardwareSPI::begin(SPIFrequency freq, uint32 endianness, uint32 mode) {
104104
prescaleFactors[freq + 1] :
105105
prescaleFactors[freq];
106106

107-
spi_init(spi_num, prescale, endianness, 0);
107+
spi_init(spi_num, prescale, endianness, mode);
108108
}
109109

110110
/**

0 commit comments

Comments
 (0)