mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
@@ -656,6 +656,10 @@ public class ADIS16448_IMU implements AutoCloseable, Sendable {
|
||||
m_spi = null;
|
||||
}
|
||||
}
|
||||
if (m_simDevice != null) {
|
||||
m_simDevice.close();
|
||||
m_simDevice = null;
|
||||
}
|
||||
System.out.println("Finished cleaning up after the IMU driver.");
|
||||
}
|
||||
|
||||
|
||||
@@ -681,6 +681,10 @@ public class ADIS16470_IMU implements AutoCloseable, Sendable {
|
||||
m_spi = null;
|
||||
}
|
||||
}
|
||||
if (m_simDevice != null) {
|
||||
m_simDevice.close();
|
||||
m_simDevice = null;
|
||||
}
|
||||
System.out.println("Finished cleaning up after the IMU driver.");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user