mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Fix usages of std::min and std::max to be windows safe (#4887)
This commit is contained in:
@@ -193,7 +193,7 @@ bool ADIS16470_IMU::SwitchToStandardSPI() {
|
||||
while (data_count > 0) {
|
||||
/* Receive data, max of 200 words at a time (prevent potential segfault)
|
||||
*/
|
||||
m_spi->ReadAutoReceivedData(trashBuffer, std::min(data_count, 200),
|
||||
m_spi->ReadAutoReceivedData(trashBuffer, (std::min)(data_count, 200),
|
||||
0_s);
|
||||
/*Get the remaining data count */
|
||||
data_count = m_spi->ReadAutoReceivedData(trashBuffer, 0, 0_s);
|
||||
|
||||
Reference in New Issue
Block a user