Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Edge2Edge in ModbusType Float64 fixed. #2265

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import io.openems.edge.bridge.modbus.api.element.AbstractModbusElement;
import io.openems.edge.bridge.modbus.api.element.DummyRegisterElement;
import io.openems.edge.bridge.modbus.api.element.FloatDoublewordElement;
import io.openems.edge.bridge.modbus.api.element.FloatQuadruplewordElement;
import io.openems.edge.bridge.modbus.api.element.ModbusElement;
import io.openems.edge.bridge.modbus.api.element.StringWordElement;
import io.openems.edge.bridge.modbus.api.element.UnsignedDoublewordElement;
Expand Down Expand Up @@ -351,7 +352,7 @@
case UINT32 -> new UnsignedDoublewordElement(address);
case UINT64 -> new UnsignedQuadruplewordElement(address);
case FLOAT32 -> new FloatDoublewordElement(address);
case FLOAT64 -> new UnsignedQuadruplewordElement(address);
case FLOAT64 -> new FloatQuadruplewordElement(address);

Check warning on line 355 in io.openems.edge.edge2edge/src/io/openems/edge/edge2edge/common/AbstractEdge2Edge.java

View check run for this annotation

Codecov / codecov/patch

io.openems.edge.edge2edge/src/io/openems/edge/edge2edge/common/AbstractEdge2Edge.java#L355

Added line #L355 was not covered by tests
case STRING16 -> new StringWordElement(address, 16);
};
}
Expand Down
Loading