Closed arkaheb258 closed 3 years ago
Example solution (src/protocol/pdo.js):
@@ -178,7 +178,10 @@ class Pdo { for(const dataObject of pdo.dataObjects) { const index = dataObject.index; - const entry = this.device.dataObjects[index]; + let entry = this.device.dataObjects[index]; + if(entry.subNumber > 0) { + entry = entry[dataObject.subIndex]; + } const size = entry.raw.length;
Should be resolved in 2.5.4-beta
Example solution (src/protocol/pdo.js):