adafruit / Adafruit_MQTT_Library

Arduino library for MQTT support
MIT License
573 stars 291 forks source link

Update Adafruit_MQTT_Client.cpp to remove use of min() #107

Closed jerryneedell closed 6 years ago

jerryneedell commented 6 years ago

see https://github.com/adafruit/Adafruit_MQTT_Library/issues/106 for discussion of link failures after upgrading esp8266 community library BSP to version 2.4.0 -- removing the use of min() allows for successful compilation,link and execution.

Replace call to min() with ternary statement to accomplish same action.

Thank you for creating a pull request to contribute to Adafruit's GitHub code! Before you open the request please review the following guidelines and tips to help it be more easily integrated:

Thank you again for contributing! We will try to test and integrate the change as soon as we can, but be aware we have many GitHub repositories to manage and can't immediately respond to every request. There is no need to bump or check in on a pull request (it will clutter the discussion of the request).

Also don't be worried if the request is closed or not integrated--sometimes the priorities of Adafruit's GitHub code (education, ease of use) might not match the priorities of the pull request. Don't fret, the open source community thrives on forks and GitHub makes it easy to keep your changes in a forked repo.

After reviewing the guidelines above you can delete this text from the pull request.