Skip to content

Commit

Permalink
fix ControlIQSettingsResponse test
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoglom committed Dec 23, 2024
1 parent 5aa848d commit 20e538a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

@MessageProps(
opCode=-53,
size=0,
size=3,
type=MessageType.RESPONSE,
characteristic=Characteristic.CONTROL,
signed=true,
Expand All @@ -23,7 +23,10 @@ public class ChangeControlIQSettingsResponse extends Message {

public ChangeControlIQSettingsResponse() {
this.cargo = EMPTY;

}

public ChangeControlIQSettingsResponse(byte[] raw) {
parse(raw);
}

public void parse(byte[] raw) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public void testChangeControlIQSettingsResponse() throws DecoderException {
initPumpState("authenticationKey", 0L);

ChangeControlIQSettingsResponse expected = new ChangeControlIQSettingsResponse(
//
new byte[3]
);

ChangeControlIQSettingsResponse parsedRes = (ChangeControlIQSettingsResponse) MessageTester.test(
"xxxx",
3,
"005ccb5c1b000000d9a3ee1f799d9f28e8a6759fed2cb0fafeffdea01a2b0cf56bb0",
92,
1,
CharacteristicUUID.CONTROL_CHARACTERISTICS,
expected
Expand Down

0 comments on commit 20e538a

Please sign in to comment.