Skip to content

Iskra IE.5 HR: read 13.7.0 power factor as LongUnsigned - #1290

Merged
gskjold merged 1 commit into
mainfrom
fix/iskra-ie5-power-factor
Nov 5, 2026
Merged

gskjold merged 1 commit into
mainfrom
fix/iskra-ie5-power-factor

Conversation

@ArnieO

@ArnieO ArnieO commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

In the 33-item Iskra IE.5 frame (#1072, struct 0x21) 13.7.0 power factor is LongUnsigned, but it was read as DoubleLongUnsigned. The 32-bit read takes in the next element's type byte and gives power factors of 45 000–58 000.

Now reads LongUnsigned with ntohs. DoubleLongUnsigned is still handled.

Test: gh1072-2/3/4: PF 0.70 / 0.75 / 0.89 (was 45 614 / 48 891 / 58 263). Bytes in gh1072-4: 12 03 79 = 889. Golden master unchanged (it does not record PF).

(The web editor also added a final newline to IEC6205675.cpp.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01LAhKXXvV3q3Ro13EackZPq

In the 33-item IE.5 frame (#1072) 13.7.0 is LongUnsigned, but it was read as
DoubleLongUnsigned, giving power factors of 45 000+. Now 0.70 / 0.75 / 0.89
for gh1072-2/3/4. DoubleLongUnsigned is still handled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LAhKXXvV3q3Ro13EackZPq
@github-actions

Copy link
Copy Markdown

🔧 PR Build Artifacts

Version: 573fb3d

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

@gskjold
gskjold merged commit 054b59a into main Nov 5, 2026
8 checks passed
@gskjold
gskjold deleted the fix/iskra-ie5-power-factor branch November 5, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants