// // Created by camer on 16/05/2020. // #include "../../../include/AnalogDevices/AnalogSensors/AnalogSensorPHmetre.h" AnalogSensorPHmetre::AnalogSensorPHmetre(float val, int temps) : AnalogSensor(val, temps) {} int AnalogSensorPHmetre::alea = 1; void AnalogSensorPHmetre::run() { int cpt = 0; while (ptrmem!=NULL){ if (cpt == 3){ *ptrmem = val - alea; val = val - alea; cpt = 0; } sleep(temps); cpt ++; } }