diff --git a/linux/boardtest/SpiTestClass.cpp b/linux/boardtest/SpiTestClass.cpp index b46cef4b..8ad03b7d 100644 --- a/linux/boardtest/SpiTestClass.cpp +++ b/linux/boardtest/SpiTestClass.cpp @@ -25,7 +25,7 @@ gpioIF(gpioIF) { if(gpioIF == nullptr) { sif::error << "SpiTestClass::SpiTestClass: Invalid GPIO ComIF!" << std::endl; } - testMode = TestModes::MGM_LIS3MDL; + testMode = TestModes::GYRO_L3GD20H; spiTransferStruct.rx_buf = reinterpret_cast<__u64>(recvBuffer.data()); spiTransferStruct.tx_buf = reinterpret_cast<__u64>(sendBuffer.data()); } @@ -266,7 +266,7 @@ void SpiTestClass::performL3gTest(uint8_t l3gId) { for(uint8_t idx = 0; idx < sizeof(readRegs); idx++) { if(readRegs[idx] != commandRegs[0]) { sif::warning << "SpiTestClass::performL3gTest: Read control register" << - static_cast(idx + 1) << "not equal to configured value" << std::endl; + static_cast(idx + 1) << " not equal to configured value" << std::endl; } } } diff --git a/linux/boardtest/SpiTestClass.h b/linux/boardtest/SpiTestClass.h index c24a5156..9c6305f6 100644 --- a/linux/boardtest/SpiTestClass.h +++ b/linux/boardtest/SpiTestClass.h @@ -49,9 +49,9 @@ private: #elif defined(XIPHOS_Q7S) uint8_t mgm0Lis3mdlChipSelect = 5; uint8_t mgm1Rm3100ChipSelect = 17; - uint8_t gyro0AdisResetLin = 20; + uint8_t gyro0AdisResetLine = 20; uint8_t gyro0AdisChipSelect = 21; - uint8_t gyro1L3gd20ChipSelect = 7; + uint8_t gyro1L3gd20ChipSelect = 10; uint8_t gyro2L3gd20ChipSelect = 3; uint8_t mgm2Lis3mdlChipSelect = 0; uint8_t mgm3Rm3100ChipSelect = 23;