miguel5612 / MQSensorsLib

We present a unified library for MQ sensors, this library allows to read MQ signals easily from Arduino, Genuino, ESP8266, ESP-32 boards whose references are MQ2, MQ3, MQ4, MQ5, MQ6, MQ7, MQ8, MQ9, MQ131, MQ135, MQ136, MQ303A, MQ309A.
MIT License
169 stars 64 forks source link

Cleanup general definitions in MQUnifiedSensor.h #61

Closed adrcunha closed 1 year ago

adrcunha commented 1 year ago

Description

Remove ADC_RESOLUTION and move retries and retry_interval to MQUnifiedsensor.cpp. These three definitions have generic names so it's easy to have them conflict with a user's sketch that imports MQUnifiedSensor.h.

ADC_RESOLUTION is unused, and retries and retry_interval are only used by getVoltage().

Fixes #60.

Type of change

How Has This Been Tested?

Build examples on Arduino IDE 1.8.19. This PR doesn't change any behavior of the library.