mirror of
https://github.com/miguel5612/MQSensorsLib.git
synced 2025-07-04 11:21:03 +03:00
Cleanup general definitions in MQUnifiedSensor.h
ADC_RESOLUTION is unused, and retries and retry_interval are only used by getVoltage(). Thus, remove ADC_RESOLUTION and move retries and retry_interval to MQUnifiedsensor.cpp. Furthermore, these three definitions have generic names so it's easy to have them conflict with a user's sketch that imports MQUnifiedSensor.h.
This commit is contained in:
@ -6,10 +6,6 @@
|
||||
|
||||
/***********************Software Related Macros************************************/
|
||||
|
||||
#define ADC_RESOLUTION 10 // for 10bit analog to digital converter.
|
||||
#define retries 2
|
||||
#define retry_interval 20
|
||||
|
||||
class MQUnifiedsensor
|
||||
{
|
||||
public:
|
||||
|
Reference in New Issue
Block a user