Skip to content

Commit 6ad044f

Browse files
committed
set data to 0 bytes on active inverter request
1 parent 8869c15 commit 6ad044f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inverter-pylon-rs485/src/main/java/com/airepublic/bmstoinverter/inverter/pylon/rs485/PylonInverterRS485Processor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected List<ByteBuffer> createSendFrames(final ByteBuffer requestFrame, final
112112
LOG.debug("Inverter is not requesting data, trying to send data actively");
113113
// try to send data actively
114114
final byte adr = 0x12;
115-
frames.add(prepareSendFrame(adr, (byte) 0x46, (byte) 0x4F, createProtocolVersion(aggregatedPack)));
115+
frames.add(prepareSendFrame(adr, (byte) 0x46, (byte) 0x4F, new byte[0]));
116116
// this is wrong anyway as the CID1 should be 0x46 for responses
117117
// frames.add(prepareSendFrame(adr, (byte) 0x51, (byte) 0x00,
118118
// createManufacturerCode(aggregatedPack)));

0 commit comments

Comments
 (0)