C++ SPI: Fix SetClockRate to take int (#1717)

The Java version takes an int, and HAL_SetSPISpeed takes an int as well.
This commit is contained in:
David Vo
2019-06-12 23:04:52 +10:00
committed by Peter Johnson
parent c2829ed98e
commit 0120f31247
2 changed files with 3 additions and 3 deletions

View File

@@ -183,7 +183,7 @@ SPI& SPI::operator=(SPI&& rhs) {
return *this;
}
void SPI::SetClockRate(double hz) { HAL_SetSPISpeed(m_port, hz); }
void SPI::SetClockRate(int hz) { HAL_SetSPISpeed(m_port, hz); }
void SPI::SetMSBFirst() {
m_msbFirst = true;