Browse Source

BT6708: add ups s/n in web

balbekova 7 years ago
parent
commit
62109c55c0
2 changed files with 2 additions and 2 deletions
  1. 1 1
      modules/Ethernet/snmp_api.c
  2. 1 1
      modules/HTTP_Server/web_params_api.c

+ 1 - 1
modules/Ethernet/snmp_api.c

@@ -193,7 +193,7 @@ void SNMP_SetObjDescr(void)
   strcat(sSettings.sSnmp.sysDescr, sSettings.sInfo.serialNumber);
   strcat(sSettings.sSnmp.sysDescr, sSettings.sInfo.serialNumber);
   strcat(sSettings.sSnmp.sysDescr, " ");
   strcat(sSettings.sSnmp.sysDescr, " ");
   strcat(sSettings.sSnmp.sysDescr, UPS.model);
   strcat(sSettings.sSnmp.sysDescr, UPS.model);
-#ifdef HARDWARE_BT6702
+#ifndef HARDWARE_BT6706
   strcat(sSettings.sSnmp.sysDescr, " ");
   strcat(sSettings.sSnmp.sysDescr, " ");
   strcat(sSettings.sSnmp.sysDescr, UPS.serial);
   strcat(sSettings.sSnmp.sysDescr, UPS.serial);
 #endif
 #endif

+ 1 - 1
modules/HTTP_Server/web_params_api.c

@@ -352,7 +352,7 @@ void HTTP_GetInfo(char *buf)
   strcat(buf, "\",\"ups_model\":\"");
   strcat(buf, "\",\"ups_model\":\"");
   strncat(buf, str, len);
   strncat(buf, str, len);
 
 
-#ifdef HARDWARE_BT6702
+#ifndef HARDWARE_BT6706
   GetUPSSerialStr(str, &len);
   GetUPSSerialStr(str, &len);
   strcat(buf, "\",\"ups_sn\":\"");
   strcat(buf, "\",\"ups_sn\":\"");
   strncat(buf, str, len);
   strncat(buf, str, len);