Remove add 1 comment

This commit is contained in:
Gold856
2024-06-05 12:42:32 -04:00
parent 6b7f0d25f6
commit 3a1315ae0a
3 changed files with 3 additions and 3 deletions

View File

@@ -649,7 +649,7 @@ void ADIS16470_IMU::Acquire() {
// Read number of bytes currently stored in the buffer
int data_count = m_spi->ReadAutoReceivedData(buffer, 0, 0_s);
// Check if frame is incomplete. Add 1 because of timestamp
// Check if frame is incomplete
int data_remainder = data_count % dataset_len;
// Remove incomplete data from read count
int data_to_read = data_count - data_remainder;

View File

@@ -700,7 +700,7 @@ public class ADIS16448_IMU implements AutoCloseable, Sendable {
// Read number of bytes currently stored in the buffer
int data_count = m_spi.readAutoReceivedData(buffer, 0, 0);
// Check if frame is incomplete. Add 1 because of timestamp
// Check if frame is incomplete
int data_remainder = data_count % dataset_len;
// Remove incomplete data from read count
int data_to_read = data_count - data_remainder;

View File

@@ -691,7 +691,7 @@ public class ADIS16470_IMU implements AutoCloseable, Sendable {
// Read number of bytes currently stored in the buffer
int data_count = m_spi.readAutoReceivedData(buffer, 0, 0);
// Check if frame is incomplete. Add 1 because of timestamp
// Check if frame is incomplete
int data_remainder = data_count % dataset_len;
// Remove incomplete data from read count
int data_to_read = data_count - data_remainder;