Skip to content

Commit

Permalink
Bump max EZSP version to 10 (zsmartsystems#1378)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Jackson <chris@cd-jackson.com>
  • Loading branch information
cdjackson authored and ViToni committed Mar 16, 2023
1 parent 42278c2 commit e08315c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -976,7 +976,7 @@ private void createEmberFrame(Protocol protocol) throws FileNotFoundException, U
out.println(" /**");
out.println(" * The maximum supported version of EZSP");
out.println(" */");
out.println(" private static final int EZSP_MAX_VERSION = 8;");
out.println(" private static final int EZSP_MAX_VERSION = 10;");
out.println();
out.println(" /**");
out.println(" * The network ID bit shift");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public abstract class EzspFrame {
/**
* The maximum supported version of EZSP
*/
private static final int EZSP_MAX_VERSION = 8;
private static final int EZSP_MAX_VERSION = 10;

/**
* The network ID bit shift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,12 @@ public void testEzspVersions() {
assertEquals(7, EzspFrame.getEzspVersion());
assertTrue(EzspFrame.setEzspVersion(8));
assertEquals(8, EzspFrame.getEzspVersion());
assertFalse(EzspFrame.setEzspVersion(9));
assertEquals(8, EzspFrame.getEzspVersion());
assertTrue(EzspFrame.setEzspVersion(9));
assertEquals(9, EzspFrame.getEzspVersion());
assertTrue(EzspFrame.setEzspVersion(10));
assertEquals(10, EzspFrame.getEzspVersion());
assertFalse(EzspFrame.setEzspVersion(11));
assertEquals(10, EzspFrame.getEzspVersion());
EzspFrame.setEzspVersion(4);
}

Expand Down

0 comments on commit e08315c

Please sign in to comment.