• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Compile Error with esp8266/Arduino 2.4.0

    scheduled pinned locked moved MyControllerDevice (ESP8266)
    2 posts 2 posters 1.5k views 2 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • E offline
      Emmanuel
      global:last-edited-by,

      Hello,

      When compiling with esp8266/Arduino 2.4.0, I've got:

      C:\Users\john\Documents\Arduino\libraries\MyControllerDevice\McMessage.cpp: In member function 'char* McMessage::getString(char*) const':
      
      C:\Users\john\Documents\Arduino\libraries\MyControllerDevice\McMessage.cpp:112:41: error: no matching function for call to 'min(const uint8_t&, int)'
      
             dtostrf(fValue,2,min(fPrecision, 8),buffer);
      

      From 2.4.0 release notes:
      Remove min, max, isnan, isinf macros, use tempmlates from std:: instead.

      jkandasaJ one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @Emmanuel
        global:last-edited-by,

        @emmanuel Thanks for reporting this issue. Created an issue to track this one.

        https://github.com/mycontroller-org/MyControllerDevice/issues/17

        one-reply-to-this-post last-reply-time reply quote 0
        • first-post
          last-post

        1

        online

        644

        users

        532

        topics

        3.4k

        posts
        Copyright © 2015-2025 MyController.org | Contributors | Localization