Browse Source

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

balbekova 2 years ago
parent
commit
becbf5eede
1 changed files with 4 additions and 1 deletions
  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, " ");