This commit is contained in:
parent
02df949a48
commit
a74ddbbb9f
@ -555,9 +555,10 @@ void SpiTestClass::max1227PlPcduTest(int fd) {
|
|||||||
uint8_t n = 11;
|
uint8_t n = 11;
|
||||||
size_t tmpSz = spiTransferStruct[0].len;
|
size_t tmpSz = spiTransferStruct[0].len;
|
||||||
max1227::prepareExternallyClockedRead0ToN(sendBuffer.data(), n, tmpSz);
|
max1227::prepareExternallyClockedRead0ToN(sendBuffer.data(), n, tmpSz);
|
||||||
max1227::prepareExternallyClockedTemperatureRead(sendBuffer.data() + spiTransferStruct[0].len,
|
|
||||||
tmpSz);
|
|
||||||
spiTransferStruct[0].len = tmpSz;
|
spiTransferStruct[0].len = tmpSz;
|
||||||
|
size_t dummy = 0;
|
||||||
|
max1227::prepareExternallyClockedTemperatureRead(sendBuffer.data() + spiTransferStruct[0].len,
|
||||||
|
dummy);
|
||||||
// + 1 to account for temp conversion byte
|
// + 1 to account for temp conversion byte
|
||||||
spiTransferStruct[0].len += 1;
|
spiTransferStruct[0].len += 1;
|
||||||
transfer(fd, gpioIds::PLPCDU_ADC_CS);
|
transfer(fd, gpioIds::PLPCDU_ADC_CS);
|
||||||
|
Loading…
Reference in New Issue
Block a user