Added iGas interface

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Serban Waltter
2018-10-08 16:43:42 +03:00
committed by Mihai Tudor Panu
parent f28a6d2561
commit e4f106a0c7
33 changed files with 267 additions and 21 deletions

View File

@@ -66,6 +66,11 @@ float MICSV89::co2equ() {
return ((rx_buf[0] - 13) * (1600/229) + 400);
}
float MICSV89::getConcentration() {
update();
return ((rx_buf[0] - 13) * (1600/229) + 400);
}
int MICSV89::vocshort() {
return rx_buf[1];
}