mirror of
https://github.com/eclipse/upm.git
synced 2025-07-06 11:51:10 +03:00
Updated interfaces and sensors
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:

committed by
Mihai Tudor Panu

parent
bfdd2c37c0
commit
90524273ec
@ -74,3 +74,8 @@ float DFRPH::pH(unsigned int samples)
|
||||
|
||||
return ph_avg/samples;
|
||||
}
|
||||
|
||||
float DFRPH::getPH()
|
||||
{
|
||||
return pH(10);
|
||||
}
|
||||
|
@ -132,6 +132,13 @@ namespace upm {
|
||||
*/
|
||||
virtual float pH(unsigned int samples = 15);
|
||||
|
||||
/**
|
||||
* Returns the detected pH value.
|
||||
*
|
||||
* @return The pH value detected
|
||||
*/
|
||||
virtual float getPH();
|
||||
|
||||
private:
|
||||
/**
|
||||
* Don't allow copies of this class
|
||||
|
Reference in New Issue
Block a user