Access now working in ESI file.

This commit is contained in:
Hakan Bastedt
2025-02-20 10:33:38 +01:00
parent bec102b7f6
commit 13463f269f

View File

@@ -152,8 +152,13 @@ function esi_generator(form, od, indexes, dc)
result += addDictionaryObjectSubitems(objd.items);
}
var flags = `\n <Access>ro</Access>`;
if (objd.otype == OTYPE.VAR) {
var flags = ``;
if (objd.otype == OTYPE.VAR) {
let access = `ro`;
if (objd.access) {
access = objd.access.slice(0,2).toLowerCase();
}
flags += `\n <Access>${access}</Access>`;
flags += getPdoMappingFlags(objd);
}
if (SDO_category[index]) {