Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling - missing "min" #35

Open
gioreva opened this issue Nov 10, 2016 · 1 comment
Open

Error compiling - missing "min" #35

gioreva opened this issue Nov 10, 2016 · 1 comment

Comments

@gioreva
Copy link

gioreva commented Nov 10, 2016

  1. Not Compile. See abore errors.
  2. Can I have one example of costructor, hardware serial and no reset connectet ?

Arduino:1.7.11 (Windows 7), Scheda:"Arduino M0"

D:\Documents\Arduino\libraries\ESP8266wifi-master\ESP8266wifi.cpp: In member function 'WifiMessage ESP8266wifi::listenForIncomingMessage(int)':

D:\Documents\Arduino\libraries\ESP8266wifi-master\ESP8266wifi.cpp:547:60: error: 'min' was not declared in this scope

     readBuffer(&msgIn[0], min(length, sizeof(msgIn) - 1));

                                                        ^

D:\Documents\Arduino\libraries\ESP8266wifi-master\ESP8266wifi.cpp: In member function 'WifiMessage ESP8266wifi::getIncomingMessage()':

D:\Documents\Arduino\libraries\ESP8266wifi-master\ESP8266wifi.cpp:584:60: error: 'min' was not declared in this scope

     readBuffer(&msgIn[0], min(length, sizeof(msgIn) - 1));

                                                        ^

Errore durante la compilazione

Questo report potrebbe essere più ricco
di informazioni con
"Mostra un output dettagliato durante la compilazione"
abilitato in "File > Impostazioni"

@cederberg
Copy link
Collaborator

What kind of environment are you compiling in? The min function is part of the Arduino "language reference", so it should be available in all compatible environments. See https://www.arduino.cc/en/Reference/Min

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants