mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user