mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-02-06 00:53:00 +08:00
Fix build error
Make ec_mbxreceive take the same arguments as ecx_mbxreceive apart from the context. Change-Id: I3a0748a34792ae36b583332c3b247d9b4e9751f4
This commit is contained in:
@@ -2824,7 +2824,7 @@ int ec_mbxsend(uint16 slave,ec_mbxbuft *mbx, int timeout)
|
||||
* @return Work counter (>0 is success)
|
||||
* @see ecx_mbxreceive
|
||||
*/
|
||||
int ec_mbxreceive(uint16 slave, ec_mbxbuft *mbx, int timeout)
|
||||
int ec_mbxreceive(uint16 slave, ec_mbxbuft **mbx, int timeout)
|
||||
{
|
||||
return ecx_mbxreceive (&ecx_context, slave, mbx, timeout);
|
||||
}
|
||||
|
||||
@@ -558,7 +558,7 @@ int ec_writestate(uint16 slave);
|
||||
uint16 ec_statecheck(uint16 slave, uint16 reqstate, int timeout);
|
||||
int ec_mbxempty(uint16 slave, int timeout);
|
||||
int ec_mbxsend(uint16 slave,ec_mbxbuft *mbx, int timeout);
|
||||
int ec_mbxreceive(uint16 slave, ec_mbxbuft *mbx, int timeout);
|
||||
int ec_mbxreceive(uint16 slave, ec_mbxbuft **mbx, int timeout);
|
||||
void ec_esidump(uint16 slave, uint8 *esibuf);
|
||||
uint32 ec_readeeprom(uint16 slave, uint16 eeproma, int timeout);
|
||||
int ec_writeeeprom(uint16 slave, uint16 eeproma, uint16 data, int timeout);
|
||||
|
||||
Reference in New Issue
Block a user