浏览代码

[BT-6709-MTS]change UPS model

balbekova 2 年之前
父节点
当前提交
2d96df503d
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      modules/MegaTec/megatec.c

+ 12 - 0
modules/MegaTec/megatec.c

@@ -618,6 +618,18 @@ void ups_model_response(char *data)
                 //flag_WPHVR2K0L = true;
             }
             else
+#endif
+#if HARDWARE_BT6709_MTS
+            if(UPS.serial[0] == 0) {
+                return;
+            }
+            if(strncmp(value, "WPHVR3K0", 8) == 0) {
+                strcpy(UPS.model, "RTMP-II v3r");
+            } else if(strncmp(value, "WPHVR2K0", 8) == 0) {
+                strcpy(UPS.model, "RTMP-II v2r");
+            } else if(strncmp(value, "WPHVR1K0", 8) == 0) {
+                strcpy(UPS.model, "RTMP-II r");
+            } else
 #endif
             {
                 strcpy(UPS.model, "RTMP-II");