Skip to content

Commit

Permalink
things are turning nasty
Browse files Browse the repository at this point in the history
  • Loading branch information
rusefillc committed Feb 16, 2024
1 parent 29a83d2 commit 1d8f034
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public void testBigEndian() {
byte[] rpm = {(byte) 0x70, 0x04, 0x1F};
assertEquals(0x41f, DbcField.getBitRange(rpm, 16, 16, true));

byte[] torque = {0x68, 0x07};
assertEquals(0x807, DbcField.getBitRange(torque, 8, 13, true));

byte[] data = {(byte) 0xAB, 0x56, 0x34};

assertEquals(0x56AB, DbcField.getBitRange(data, 0, 16, false));
Expand Down

0 comments on commit 1d8f034

Please sign in to comment.