From 8ec63548865e423c06d80833c3906ce33aafb3ac Mon Sep 17 00:00:00 2001 From: s-hall Date: Tue, 11 Apr 2023 14:50:15 -0400 Subject: [PATCH] Use correct index with check_com_changed --- canopen_master/src/pdo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/canopen_master/src/pdo.cpp b/canopen_master/src/pdo.cpp index 051ab4ecb..30d59444c 100644 --- a/canopen_master/src/pdo.cpp +++ b/canopen_master/src/pdo.cpp @@ -104,7 +104,7 @@ void PDOMapper::PDO::parse_and_set_mapping(const ObjectStorageSharedPtr &storage ObjectStorage::Entry cob_id; storage->entry(cob_id, com_index, SUB_COM_COB_ID); - bool com_changed = check_com_changed(dict, map_index); + bool com_changed = check_com_changed(dict, com_index); if((map_changed || com_changed) && cob_id.desc().writable){ cob_id.set(cob_id.get() | PDOid::INVALID_MASK); }