
Re: LINEAR LEADER Mndsensors search for samples
Hello
In an other program , I use
HTGYRO-driver.h
which call the driver common.h
and I get these mistakes
so I put the " & " but .............
I get always the same error message
as we say in French :
" error before the river , is true after the river " ????????????? ( from Blaise Pascal )
**Error**:Calling procedure 'sendI2CMsg'. '*' Indirection levels mismatch. Parameter: 'unsigned const char * pSendMsg'. Expression: 'error_array[0]'. Type: 'ubyte'
**Error**:Calling procedure 'sendI2CMsg'. '*' Indirection levels mismatch. Parameter: 'unsigned const char * pSendMsg'. Expression: 'data[0]'. Type: 'tByteArray &'
**Error**:Calling procedure 'sendI2CMsg'. '*' Indirection levels mismatch. Parameter: 'unsigned const char * pSendMsg'. Expression: 'data[0]'. Type: 'tByteArray &'
**Error**:Calling procedure 'readI2CReply'. '*' Indirection levels mismatch. Parameter: 'unsigned char * pReplyBytes'. Expression: 'data[0]'. Type: 'tByteArray &'
it is strange because in the help
there is a " & " in the tittle
but no "&" in the sample
would you an idea about that ?
thanks
didier
void sendI2CMsg(const tSensors nPort, const byte &sendMsg, const int nReplySize)
(void) Send an I2C message on the specified sensor port.
Parameter Explanation Data Type
nPort A sensor port or name tSensors
sendMsg The message to send byte
nReplySize Specifies the length, in bytes, of the reply expected from the sensor. int
sendI2CMsg(i2cScanPort, i2cScanDeviceMsg[0],

; // send a message from 'i2cScanDeviceMsg[0]' to
// 'i2cScanPort' (S1), expecting an 8 byte return message