Skip to content

Commit 623169f

Browse files
dannyhaakclaude
andcommitted
fix: decode +AIDC data when dataToggle=1 (case-sensitivity bug)
The AIDC decode check looked for "datatoggle" (lowercase) but the field name from scheme definitions is "dataToggle" (camelCase). Dictionary lookup is case-sensitive, so AIDC data was never decoded. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9df0fd2 commit 623169f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/TagDataTranslation/TDTEngine.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ public bool TryTranslateDetails(string epcIdentifier, string parameterList, stri
703703

704704
// 4d. DECODE +AIDC DATA (TDS 2.3 Section 15.3)
705705
// when dataToggle=1 and there are remaining bits after the EPC
706-
if (parameterDictionary.TryGetValue("datatoggle", out var dataToggle) &&
706+
if (parameterDictionary.TryGetValue("dataToggle", out var dataToggle) &&
707707
dataToggle == "1" &&
708708
bitPosition < epcIdentifier.Length)
709709
{

test/TagDataTranslation.Tests

0 commit comments

Comments
 (0)