Fix example/CO_storageBlank.c.
CO_LOCK_OD(CANmodule) must not be used, because lock is already applied by SDO server.
This commit is contained in:
parent
58012aae34
commit
29c5b64131
3 changed files with 2 additions and 4 deletions
|
|
@ -31,9 +31,7 @@ storeBlank(CO_storage_entry_t* entry, CO_CANmodule_t* CANmodule) {
|
|||
|
||||
/* Open a file and write data to it */
|
||||
/* file = open(entry->pathToFileOrPointerToMemory); */
|
||||
CO_LOCK_OD(CANmodule);
|
||||
/* write(entry->addr, entry->len, file); */
|
||||
CO_UNLOCK_OD(CANmodule);
|
||||
|
||||
return ODR_OK;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ typedef struct {
|
|||
* because loading data is target specific.
|
||||
*
|
||||
* @param storage This object will be initialized. It must be defined by application and must exist permanently.
|
||||
* @param CANmodule CAN device, used for @ref CO_LOCK_OD() macro.
|
||||
* @param CANmodule CAN device, for optional usage.
|
||||
* @param OD_1010_StoreParameters OD entry for 0x1010 -"Store parameters". Entry is optional, may be NULL.
|
||||
* @param OD_1011_RestoreDefaultParameters OD entry for 0x1011 -"Restore default parameters". Entry is optional, may be
|
||||
* NULL.
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ extern "C" {
|
|||
* data to addresses specified inside entries. This function internally calls @ref CO_storage_init().
|
||||
*
|
||||
* @param storage This object will be initialized. It must be defined by application and must exist permanently.
|
||||
* @param CANmodule CAN device, used for @ref CO_LOCK_OD() macro.
|
||||
* @param CANmodule CAN device, for optional usage.
|
||||
* @param storageModule Pointer to storage module passed to CO_eeprom functions.
|
||||
* @param OD_1010_StoreParameters OD entry for 0x1010 -"Store parameters". Entry is optional, may be NULL.
|
||||
* @param OD_1011_RestoreDefaultParam OD entry for 0x1011 -"Restore default parameters". Entry is optional, may be NULL.
|
||||
|
|
|
|||
Loading…
Reference in a new issue