• Categories
    • Recent
    • Tags
    • Popular
    • Register
    • Login

    Compile Error with esp8266/Arduino 2.4.0

    Scheduled Pinned Locked Moved MyControllerDevice (ESP8266)
    2 Posts 2 Posters 1.3k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E Offline
      Emmanuel
      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 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        jkandasa @Emmanuel
        last edited by

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

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

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        0

        Online

        587

        Users

        529

        Topics

        3.4k

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