Explorar o código

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

balbekova %!s(int64=2) %!d(string=hai) anos
pai
achega
becbf5eede
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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));
     memset(sSettings.sSnmp.sysDesc.description, 0, sizeof(sSettings.sSnmp.sysDesc.description));
 
 
-    strcpy(sSettings.sSnmp.sysDesc.description, HW_REV);
 #if HARDWARE_BT6711 || HARDWARE_BT6711_V1
 #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
 #else
+    strcpy(sSettings.sSnmp.sysDesc.description, HW_REV);
     strcat(sSettings.sSnmp.sysDesc.description, " ");
     strcat(sSettings.sSnmp.sysDesc.description, " ");
     strcat(sSettings.sSnmp.sysDesc.description, VERSION);
     strcat(sSettings.sSnmp.sysDesc.description, VERSION);
     strcat(sSettings.sSnmp.sysDesc.description, " ");
     strcat(sSettings.sSnmp.sysDesc.description, " ");