Merge pull request #16 from causten/oemenum

Add OEM NETFN
diff --git a/ipmid-api.h b/ipmid-api.h
index 58810fa..f028e7f 100755
--- a/ipmid-api.h
+++ b/ipmid-api.h
@@ -87,7 +87,9 @@
 {
     IPMI_CC_OK = 0x00,
     IPMI_DCMI_CC_NO_ACTIVE_POWER_LIMIT = 0x80,
-    IPMI_CC_INVALID = 0xC1
+    IPMI_CC_INVALID = 0xC1,
+    IPMI_CC_SENSOR_INVALID = 0xCB
+
 };
 
 #endif
diff --git a/ipmisensor.C b/ipmisensor.C
index 568f4a4..1a40411 100644
--- a/ipmisensor.C
+++ b/ipmisensor.C
@@ -85,14 +85,14 @@
 	int i = 0;
 	event_data_t *p = g_fwprogress02h;
 
-	do {
-
-		if ((p+i)->data == b)
+	while(p->data != 0xFF) {
+		if (p->data == b) {
 			break;
-		i++;
-	} while ((p+i)->data != 0xFF);
+		} 
+		p++;
+	}
 
-	return (p+i)->text;
+	return p->text;
 }
 //  The fw progress sensor contains some additional information that needs to be processed
 //  prior to calling the dbus code.