Ver código fonte

[BT-6709-MTS][SNMP]change oid sysDescr

balbekova 2 anos atrás
pai
commit
becbf5eede
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      modules/Ethernet/snmp_api.c

+ 4 - 1
modules/Ethernet/snmp_api.c

@@ -194,9 +194,12 @@ void SNMP_SetObjDescr(void)
 
     memset(sSettings.sSnmp.sysDesc.description, 0, sizeof(sSettings.sSnmp.sysDesc.description));
 
-    strcpy(sSettings.sSnmp.sysDesc.description, HW_REV);
 #if HARDWARE_BT6711 || HARDWARE_BT6711_V1
+    strcpy(sSettings.sSnmp.sysDesc.description, HW_REV);
+#elif HARDWARE_BT6709_MTS
+    strcat(sSettings.sSnmp.sysDesc.description, UPS.model);
 #else
+    strcpy(sSettings.sSnmp.sysDesc.description, HW_REV);
     strcat(sSettings.sSnmp.sysDesc.description, " ");
     strcat(sSettings.sSnmp.sysDesc.description, VERSION);
     strcat(sSettings.sSnmp.sysDesc.description, " ");