added P036 to development plugin set

This commit is contained in:
Edwin Eefting
2017-02-18 23:48:52 +01:00
committed by DatuX
parent 890351b920
commit 3140833abb
+6 -1
View File
@@ -1,10 +1,12 @@
#ifdef PLUGIN_BUILD_DEV
//#######################################################################################################
//#################################### Plugin 036: MQ2 sensors ###############################################
//#######################################################################################################
#define PLUGIN_036
#define PLUGIN_ID_036 36
#define PLUGIN_NAME_036 "MQ2 smoke sensor"
#define PLUGIN_NAME_036 "MQ2 smoke sensor [DEVELOPMENT]"
#define PLUGIN_VALUENAME1_036 "LPG"
#define PLUGIN_VALUENAME2_036 "CO"
#define PLUGIN_VALUENAME3_036 "SMOKE"
@@ -215,3 +217,6 @@ int MQGetPercentage(float rs_ro_ratio, float *pcurve)
{
return (pow(10,( ((log(rs_ro_ratio)-pcurve[1])/pcurve[2]) + pcurve[0])));
}
#endif