diff --git a/com.zsmartsystems.zigbee.dongle.ember.autocode/src/main/java/com/zsmartsystems/zigbee/dongle/ember/autocode/CommandGenerator.java b/com.zsmartsystems.zigbee.dongle.ember.autocode/src/main/java/com/zsmartsystems/zigbee/dongle/ember/autocode/CommandGenerator.java index 6775714329..192fe71f35 100644 --- a/com.zsmartsystems.zigbee.dongle.ember.autocode/src/main/java/com/zsmartsystems/zigbee/dongle/ember/autocode/CommandGenerator.java +++ b/com.zsmartsystems.zigbee.dongle.ember.autocode/src/main/java/com/zsmartsystems/zigbee/dongle/ember/autocode/CommandGenerator.java @@ -978,7 +978,7 @@ private void createEmberFrame(Protocol protocol) throws FileNotFoundException, U out.println(" /**"); out.println(" * The maximum supported version of EZSP"); out.println(" */"); - out.println(" public static final int EZSP_MAX_VERSION = 12;"); + out.println(" public static final int EZSP_MAX_VERSION = 13;"); out.println(); out.println(" /**"); out.println(" * The network ID bit shift"); diff --git a/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/EzspFrame.java b/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/EzspFrame.java index d836103353..f4987d5b03 100644 --- a/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/EzspFrame.java +++ b/com.zsmartsystems.zigbee.dongle.ember/src/main/java/com/zsmartsystems/zigbee/dongle/ember/ezsp/EzspFrame.java @@ -58,7 +58,7 @@ public abstract class EzspFrame { /** * The maximum supported version of EZSP */ - public static final int EZSP_MAX_VERSION = 12; + public static final int EZSP_MAX_VERSION = 13; /** * The network ID bit shift diff --git a/com.zsmartsystems.zigbee.dongle.ember/src/test/java/com/zsmartsystems/zigbee/dongle/ember/ZigBeeDongleEzspTest.java b/com.zsmartsystems.zigbee.dongle.ember/src/test/java/com/zsmartsystems/zigbee/dongle/ember/ZigBeeDongleEzspTest.java index 5d3236d0ab..9d2dce1d4b 100644 --- a/com.zsmartsystems.zigbee.dongle.ember/src/test/java/com/zsmartsystems/zigbee/dongle/ember/ZigBeeDongleEzspTest.java +++ b/com.zsmartsystems.zigbee.dongle.ember/src/test/java/com/zsmartsystems/zigbee/dongle/ember/ZigBeeDongleEzspTest.java @@ -129,8 +129,10 @@ public void testEzspVersions() { assertEquals(11, EzspFrame.getEzspVersion()); assertTrue(EzspFrame.setEzspVersion(12)); assertEquals(12, EzspFrame.getEzspVersion()); - assertFalse(EzspFrame.setEzspVersion(13)); - assertEquals(12, EzspFrame.getEzspVersion()); + assertTrue(EzspFrame.setEzspVersion(13)); + assertEquals(13, EzspFrame.getEzspVersion()); + assertFalse(EzspFrame.setEzspVersion(14)); + assertEquals(13, EzspFrame.getEzspVersion()); EzspFrame.setEzspVersion(4); }