pull/133/merge
Mikael Heden 2022-12-19 15:54:12 +01:00 committed by GitHub
commit c2e6bb3e11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -1733,7 +1733,7 @@ void COE_initDefaultValues (void)
i = 0;
do
{
if (objd[i].data != NULL)
if ((objd[i].data != NULL) && (!(objd[i].flags & ATYPE_NODEFAULT)))
{
COE_setValue (&objd[i], objd[i].value);
DPRINT ("%04x:%02x = %x\n", SDOobjects[n].index, objd[i].subindex, objd[i].value);

View File

@ -96,6 +96,7 @@ typedef struct
#define ATYPE_Wop 0x20
#define ATYPE_RXPDO 0x40
#define ATYPE_TXPDO 0x80
#define ATYPE_NODEFAULT 0x8000
#define ATYPE_RO (ATYPE_Rpre | ATYPE_Rsafe | ATYPE_Rop)
#define ATYPE_WO (ATYPE_Wpre | ATYPE_Wsafe | ATYPE_Wop)