/**
    * Since there isn't an obvious way to get the chip version, the
    * hub model is used to determine which chip is being used.
    */
private static void setChipVersion() {
      //TODO: Get chip version directly if possible.
      String model = IrisHal.getModel();
      if (Model.isV2(model)) {
         hardware.set("ZM5304AU-CME3R");
      }
      else if (Model.isV3(model)) {
         hardware.set("ZM5101");
      }
      else {
         hardware.set("unknown");
      }
   }
private static void setChipVersion() {
//TODO: Get chip version directly if possible.
String model = IrisHal.getModel();
if (Model.isV2(model)) {
hardware.set("ZM5304AU-CME3R");
}
else if (Model.isV3(model)) {
hardware.set("ZM5101");
}
else {
hardware.set("unknown");
}
}
private static void setChipVersion() {
//TODO: Get chip version directly if possible.
String model = IrisHal.getModel();
if (Model.isV2(model)) {
hardware.set("ZM5304AU-CME3R");
}
else if (Model.isV3(model)) {
hardware.set("ZM5101");
}
else {
hardware.set("unknown");
}
}
private static void setChipVersion() {
//TODO: Get chip version directly if possible.
String model = IrisHal.getModel();
if (Model.isV2(model)) {
hardware.set("ZM5304AU-CME3R");
}
else if (Model.isV3(model)) {
hardware.set("ZM5101");
}
else {
hardware.set("unknown");
}
}