zhangbo 3 жил өмнө
parent
commit
c9d735bb58

+ 2 - 2
app/bmc/sensor_sdr.c

@@ -556,7 +556,7 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x1,	//Entity Instance	
 		0x7f,	//Entity Initialization
 		0x68,	//Sensor Capabilities
-		0x01,	//Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
+		0x03,	//Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
 		0x01,	//Event / Reading Type
 		0x7a95,	//Lower Threshold Reading Mask
 		0x7a95, //Upper Threshold Reading Mask
@@ -654,7 +654,7 @@ const FullSensorRec_T full_sdr_tbl[] = {
 		0x1,	//Entity Instance	
 		0x7f,	//Entity Initialization
 		0x68,	//Sensor Capabilities
-		0x01,	//Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan
+		0x01,	//Sensor Type: 01-temperature, 02-voltage, 03-current, 04-fan	=== !!!!!!!! ===
 		0x01,	//Event / Reading Type
 		0x7a95,	//Lower Threshold Reading Mask
 		0x7a95, //Upper Threshold Reading Mask

+ 3 - 3
app/goahead-3.6.5/src/http.c

@@ -1942,8 +1942,8 @@ PUBLIC ssize websWrite(Webs *wp, char *fmt, ...)
     char        *buf;
     ssize       rc;
 
-    assert(websValid(wp));
-    assert(fmt && *fmt);
+    //assert(websValid(wp));
+    //assert(fmt && *fmt);
 
     va_start(vargs, fmt);
 
@@ -1953,7 +1953,7 @@ PUBLIC ssize websWrite(Webs *wp, char *fmt, ...)
         printf("websWrite lost data, buffer overflow");
     }
     va_end(vargs);
-    assert(buf);
+    //assert(buf);
     if (buf) {
         rc = websWriteBlock(wp, buf, strlen(buf));
         wfree(buf);

+ 4 - 4
app/goahead-3.6.5/src/web_interface/src/sel.c

@@ -142,7 +142,7 @@ void GetAllSELEntriesSorted(Webs *wp)
             goto error_out;
         }
 
-        printf("Reserve SEL, sel number %d\n", nEntries);
+        //printf("Reserve SEL, sel number %d\n", nEntries);
         //Reserve SEL
         if(target_addr == 0x20)
         {
@@ -195,10 +195,10 @@ void GetAllSELEntriesSorted(Webs *wp)
                     websWrite(wp, ",");
                 }
 
-                printf("Get sel i = %d\n", i);
+                //printf("Get sel i = %d\n", i);
                 if(SELEventData.hdr.Type == 0x02)
                 {
-                    printf("system sel\n");
+                    //printf("system sel\n");
                     websWrite(wp, "{\"D1\":%d,\"D2\":%d,\"D3\":%d,\"D4\":%d,\"D5\":%d,\"D6\":%d,\"D7\":%d,\"D8\":%d,\"D9\":%d,\"D10\":%d,\"D11\":%d,",
                         SELEventData.hdr.ID, SELEventData.hdr.Type, SELEventData.hdr.TimeStamp, 
                         SELEventData.body.sysEventRecord.GenID[0],  SELEventData.body.sysEventRecord.GenID[1], 
@@ -261,7 +261,7 @@ void GetAllSELEntriesSorted(Webs *wp)
                 }
                 else if(SELEventData.hdr.Type == 0xC0)
                 {
-                    printf("oem sel\n");
+                    //printf("oem sel\n");
                     websWrite(wp, "{\"D1\":%d,\"D2\":%d,\"D3\":%d,\"D4\":%d,\"D5\":%d,\"D6\":%d,\"D7\":%d,\"D8\":%d,\"D9\":%d,\"D10\":0,\"D11\":0,\"D12\":0}",
                         SELEventData.hdr.ID, SELEventData.hdr.Type, SELEventData.hdr.TimeStamp, 
                         SELEventData.body.oemEventRecord.OEMDefined[0], SELEventData.body.oemEventRecord.OEMDefined[1],