Skip to content

Commit 42eeb2a

Browse files
Release 2.1.1
# Release 2.1.1 ## Bugfix - Error if selecting process data format
1 parent 16829bb commit 42eeb2a

6 files changed

Lines changed: 17 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## Release 2.1.1
5+
6+
### Bugfixes
7+
- Bugfix of selecting process data format with new version of IODD interpreter
8+
49
## Release 2.1.0
510

611
### New features

CSK_Module_IODDInterpreter/project.mf.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ Module can provide chunks of IODD file in JSON format to describe some datapoint
475475
</serves>
476476
</crown>
477477
<meta key="author">SICK AG</meta>
478-
<meta key="version">2.1.0</meta>
478+
<meta key="version">2.1.1</meta>
479479
<meta key="priority">low</meta>
480480
<meta key="copy-protected">false</meta>
481481
<meta key="read-protected">false</meta>

CSK_Module_IODDInterpreter/scripts/Sensors/IODDInterpreter/IODDInterpreter_Controller.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Script.serveFunction('CSK_IODDInterpreter.deleteIODD', deleteIODD)
306306
---@param selectedProcessDataTable string[] Selected process data
307307
local function updateSelectedProcessDataTable(selectedRow, selectedProcessDataTable)
308308
local state = selectedRow.selected
309-
local subindex = selectedRow.colPD1
309+
local subindex = tostring(selectedRow.colPD1)
310310
if subindex ~= "0" then
311311
if state == false and selectedProcessDataTable["0"] == true then
312312
selectedProcessDataTable["0"] = false
@@ -326,8 +326,8 @@ end
326326
---@param selectedParametersTable string[] Selected parameter data
327327
local function updateSelectedParametersTable(selectedRow, selectedParametersTable)
328328
local state = selectedRow.selected
329-
local index = selectedRow.colSD1
330-
local subindex = selectedRow.colSD2
329+
local index = tostring(selectedRow.colSD1)
330+
local subindex = tostring(selectedRow.colSD2)
331331
if subindex ~= "0" then
332332
if state == false and selectedParametersTable[index]["0"] == true then
333333
selectedParametersTable[index]["0"] = false
@@ -352,6 +352,7 @@ local function getParameterDataPointInfo(instanceId, index, subindex)
352352
if not dataPointInfo then
353353
return nil
354354
end
355+
dataPointInfo = {info = ioddInterpreter_Model.helperFuncs.getSingleInfoTable(dataPointInfo)}
355356
local jsonDataPointInfo = ioddInterpreter_Model.json.encode(dataPointInfo)
356357
return jsonDataPointInfo
357358
end

CSK_Module_IODDInterpreter/scripts/Sensors/IODDInterpreter/helper/funcs.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ local function getSingleInfoTable(rawInfoTable)
255255
info.SimpleDatatype = nil
256256
return info
257257
end
258+
funcs.getSingleInfoTable = getSingleInfoTable
258259

259260
local function compileDataPointTable(dataInfo, selectedTable)
260261
if not dataInfo then

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Tested on
4343
|Device|Firmware version|Module version|
4444
|--|--|--|
4545
|SICK AppEngine|V1.7.0|V1.1.0|
46+
|SIM1012|V2.4.2|V2.1.1|
4647
|SIM1012|V2.4.2|V2.1.0|
4748
|SIM1012|V2.4.2|V1.1.0|
4849
|SIM1012|v2.3.0|v1.0.1|

docu/CSK_Module_IODDInterpreter.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<meta name="generator" content="Asciidoctor 2.0.12">
88
<meta name="author" content="SICK AG">
9-
<title>Documentation - CSK_Module_IODDInterpreter 2.1.0</title>
9+
<title>Documentation - CSK_Module_IODDInterpreter 2.1.1</title>
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
1111
<style>
1212
/* Stylesheet for CodeRay to match GitHub theme | MIT License | http://foundation.zurb.com */
@@ -615,10 +615,10 @@
615615
</head>
616616
<body class="article toc2 toc-left">
617617
<div id="header">
618-
<h1>Documentation - CSK_Module_IODDInterpreter 2.1.0</h1>
618+
<h1>Documentation - CSK_Module_IODDInterpreter 2.1.1</h1>
619619
<div class="details">
620620
<span id="author" class="author">SICK AG</span><br>
621-
<span id="revnumber">version 2.1.0,</span>
621+
<span id="revnumber">version 2.1.1,</span>
622622
<span id="revdate">2025-01-22</span>
623623
</div>
624624
<div id="toc" class="toc2">
@@ -755,7 +755,7 @@ <h2 id="_document_metadata">Document metadata</h2>
755755
</tr>
756756
<tr>
757757
<th class="tableblock halign-left valign-top"><p class="tableblock">Version</p></th>
758-
<td class="tableblock halign-left valign-top"><p class="tableblock">2.1.0</p></td>
758+
<td class="tableblock halign-left valign-top"><p class="tableblock">2.1.1</p></td>
759759
</tr>
760760
<tr>
761761
<th class="tableblock halign-left valign-top"><p class="tableblock">Date</p></th>
@@ -5534,7 +5534,7 @@ <h4 id="_short_description_89">Short description</h4>
55345534
</div>
55355535
<div id="footer">
55365536
<div id="footer-text">
5537-
Version 2.1.0<br>
5537+
Version 2.1.1<br>
55385538
Last updated 2025-01-22 11:40:09 +0100
55395539
</div>
55405540
</div>

0 commit comments

Comments
 (0)