Skip to content
Snippets Groups Projects
Commit bd15c8b0 authored by Manon MALIQUE's avatar Manon MALIQUE
Browse files

Correcting bugs

parent 981746fb
Branches
No related tags found
No related merge requests found
...@@ -96,7 +96,7 @@ class airquality : public base { ...@@ -96,7 +96,7 @@ class airquality : public base {
/* /*
* protected methods * protected methods
*/ */
float calibrate(uint8_t _sensor); float calibrate(uint8_t _sensor) override;
}; };
......
...@@ -461,9 +461,3 @@ bool base::saveConfig( const char *filename, JsonObject root ) { ...@@ -461,9 +461,3 @@ bool base::saveConfig( const char *filename, JsonObject root ) {
return true; return true;
} }
//Manon
/*
* Update the value of a and b of a sensor
*/
float base::calibrate(uint8_t _sensor){}
\ No newline at end of file
...@@ -105,9 +105,9 @@ class base { ...@@ -105,9 +105,9 @@ class base {
//Manon //Manon
/* /*
* public functions * public virtual functions
*/ */
float calibrate(uint8_t _sensor); virtual float calibrate(uint8_t _sensor) = 0;
private: private:
/* /*
......
...@@ -97,7 +97,7 @@ class humidity : public base { ...@@ -97,7 +97,7 @@ class humidity : public base {
/* /*
* protected methods * protected methods
*/ */
float calibrate(uint8_t _sensor); float calibrate(uint8_t _sensor) override;
}; };
......
...@@ -100,7 +100,7 @@ class luminosity : public base { ...@@ -100,7 +100,7 @@ class luminosity : public base {
/* /*
* protected methods * protected methods
*/ */
float calibrate(uint8_t _sensor); float calibrate(uint8_t _sensor) override;
}; };
......
...@@ -101,7 +101,7 @@ class temperature : public base { ...@@ -101,7 +101,7 @@ class temperature : public base {
/* /*
* protected methods * protected methods
*/ */
float calibrate(uint8_t _sensor); float calibrate(uint8_t _sensor) override;
}; };
#endif /* _TEMPERATURE_H_ */ #endif /* _TEMPERATURE_H_ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment