Skip to content

Bugfix for sign conversion#91

Open
alfs wants to merge 1 commit intopsvanstrom:mainfrom
alfs:patch-sign-conversion
Open

Bugfix for sign conversion#91
alfs wants to merge 1 commit intopsvanstrom:mainfrom
alfs:patch-sign-conversion

Conversation

@alfs
Copy link

@alfs alfs commented May 26, 2024

HDLC 0x10 is a signed 2-byte integer, but was put in 32 bit signed variable so the sign was lost for negative values (when current is negative / power is exported to the grid)

HDLC 0x10 is a signed 2-byte integer, but was put in 32 bit signed variable so the sign was lost for negative values (when current is negative / power is exported to the grid)
@alfs alfs mentioned this pull request May 26, 2024
@cadwal
Copy link
Contributor

cadwal commented Mar 2, 2025

Fixed in the current code. Or so I hope.

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