Closed woeperbe closed 4 years ago
Compiles here. As a workaround change it to setSpeed(10) only. This could be the esp32 compiler picking up extra stuff.
I changed line 63 in MD_parola.cpp and now it compiles !
Re-pushed corrected version
Sorry but i have still the same problem ....
The file on github shows the correct change. How did you get the new version?
i installed the version 3.5.0 and then again 3.5.1 with the Visual Micro Explorer
Ok I’ll need to look at what github is doing tomorrow. The change is as per the workaround implemented before.
I downloaded it manually and replaced the library .... it works now ! Github problem ?
I changed line 63 in MD_parola.cpp and now it compiles !
Thanks for saving my time :+1:
The last change on your library was introducing some compatibility problems with already developed software. In my opinion it could be better to renominate setSpeed function for In and Out setup with something more specific (e.g., setSpeedInOut).
For my code the workaround was to overcast all the integer with uint8_t ( i.e., setSpeed((uint8_t) 0, 10 )
Are you reading my mind ?
Marc
Looks like github creates the 'release' when it first sees a tag and does not update when the a commit is amended. Looks like a simple solution is to create a new release.
I also agree that this overloading seems to be causing confusion because constants cannot be easily discriminated. I'll need to do something about it.
i upgraded to 3.5.2 this morning and it compiled without any problem ! Thanks again
Subject of the issue
Unable to compile after update to 3.5.1
Your Environment
Library Version: 3.5.1 Arduino IDE version: Latest Host OS and Version: Windows 10 / Visual Studio 2007 / Visual Micro 2020.708.7 CPU Hardware model/type: NodeMcu Matrix hardware model/type: [X ] Parola [ ] Generic [ ] ICStation [X ] FC-16 [ ] Custom (describe how wired)
Steps to Reproduce
Recompile :-)
Actual Behaviour
<.....> MD_Parola.cpp: In member function void MD_Parola::begin(uint8_t) MD_Parola.cpp: 63:18: error: call of overloaded 'setSpeed(int, int)' is ambiguous setSpeed(10, 10) MD_Parola.cpp:63: note candidates are MD_Parola.cpp:23: In file included from MD_Parola.h:1752: note void MD_Parola setSpeed(uint16_t, uint16_t) inline void setSpeed(uint16_t speedIn, uint16_t speedOut) { for (uint8_t i = 0; i < _numZones; i++) _Z[i].setSpeed(speedIn, speedOut); } MD_Parola.h:1763: note void MD_Parola setSpeed(uint8_t, uint16_t) inline void setSpeed(uint8_t z, uint16_t speed) { if (z < _numZones) _Z[z].setSpeed(speed); } <......> Error compiling libraries Build failed for project 'eClock'