Many changes from 2018
[owSlave2.git] / common / calibr.c
index e08d373..c9e5f40 100644 (file)
@@ -20,4 +20,9 @@ double calibr_hum(double temp,double tempdiv,double hum) {
         double r=hum*(SDDD(temp,tempdiv)*(tempdiv/(temp+273.15)+1));\r
         if (r>100) return 100.0;\r
        return r;\r
+}\r
+\r
+inline double calibr_hum05(double t,double hum) {\r
+       double y=-0.0006*t*t-0.2455*t-28.5902;\r
+       return -(hum/y)+hum;\r
 }
\ No newline at end of file