Przeglądaj źródła

[BT-6709][production] add two version beeline/mts

balbekova 4 lat temu
rodzic
commit
c207c2f16e
2 zmienionych plików z 10 dodań i 0 usunięć
  1. 5 0
      modules/testing/testing.c
  2. 5 0
      service_hw/Commands/commands_api.c

+ 5 - 0
modules/testing/testing.c

@@ -123,6 +123,11 @@ void TEST_SendData(void)
       netconn_connect(conn, IP_ADDR_BROADCAST, UDP_PORT);
       
 	  strcpy(msg, HW_REV);
+#ifdef ORDER_BEELINE
+      strcat(msg, "_BEELINE");
+#elif ORDER_MTS
+      strcat(msg, "_MTS");
+#endif
 	  strcat(msg, ";");
 		
 	  /* Заглушка */

+ 5 - 0
service_hw/Commands/commands_api.c

@@ -255,6 +255,11 @@ void COM_TestSerno(void)
 
       memset(str, 0, 20);
       GetModelStr(str, &len);
+#ifdef ORDER_BEELINE
+      strcat(str, "_BEELINE");
+#elif ORDER_MTS
+      strcat(str, "_MTS");
+#endif
 	  //strcpy(msg, sSettings.sSnmp.sysName);
       strcpy(msg, str);
 	  strcat(msg, ";");