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

retries and retry_interval definitions may conflict with user's sketch definitions #60

Closed adrcunha closed 1 year ago

adrcunha commented 1 year ago

Describe the bug

The definitions retries and retry_interval in MQUnifiedsensor.h may conflict with user's sketch own definitions.

To Reproduce Steps to reproduce the behavior:

  1. Open any example of the library in the Arduino IDE.
  2. Add your own definition of retries, e.g., #define retries 33.
  3. Build the example: the example won't build because retries is already defined.

Expected behavior No build error should occur.

Desktop (please complete the following information):