Skip to content

Commit 21050ac

Browse files
Release 2.1.2
# Version 2.1.2 ## Bugfix ### Bugfix of a case when deviceName is not specified in IODD file. DeviceID is used instead in an IODD file name
1 parent 42eeb2a commit 21050ac

4 files changed

Lines changed: 16 additions & 8 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.2
5+
6+
### Bugfixes
7+
- Bugfix of a case when deviceName is not specified in IODD file
8+
49
## Release 2.1.1
510

611
### Bugfixes

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.1</meta>
478+
<meta key="version">2.1.2</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/helper/IODDInterpreter.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,11 @@ end
333333

334334
function IODDInterpreter:getStandardFileName()
335335
local vendorName = self.DeviceIdentity.vendorName
336-
local deviceNameTextId = self.DeviceIdentity.DeviceName.textId
337-
local deviceName = self.languages[self.languages.Primary][deviceNameTextId]
336+
local deviceName = self.DeviceIdentity.deviceId
337+
if self.DeviceIdentity.DeviceName then
338+
local deviceNameTextId = self.DeviceIdentity.DeviceName.textId
339+
deviceName = self.languages[self.languages.Primary][deviceNameTextId]
340+
end
338341
local releaseDateRaw = self.DocumentInfo.releaseDate
339342
local releaseDate = string.gsub(releaseDateRaw, '-', '')
340343
local profileRevision = self.ProfileHeader.ProfileRevision

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.1</title>
9+
<title>Documentation - CSK_Module_IODDInterpreter 2.1.2</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.1</h1>
618+
<h1>Documentation - CSK_Module_IODDInterpreter 2.1.2</h1>
619619
<div class="details">
620620
<span id="author" class="author">SICK AG</span><br>
621-
<span id="revnumber">version 2.1.1,</span>
621+
<span id="revnumber">version 2.1.2,</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.1</p></td>
758+
<td class="tableblock halign-left valign-top"><p class="tableblock">2.1.2</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.1<br>
5537+
Version 2.1.2<br>
55385538
Last updated 2025-01-22 11:40:09 +0100
55395539
</div>
55405540
</div>

0 commit comments

Comments
 (0)