[SOLVED] call of overloaded 'sleep(int, int)' is ambiguous
-
Hi,
I have an older sketch which I modified and want to upload again now to my Arduino. I am using Lib 2.2.0 now, but I am getting this error at this line:
sleep(BUTTON_PIN - 2, CHANGE);
call of overloaded 'sleep(int, int)' is ambiguous
The code worked very well in the past, so whats wrong here now?
edit: I´m using Arduino IDE 1.8.5
edit2: I can compile using lib 2.0.0. So there must have been a change in the meantime.
-
I think you need to add ,0 in your parameters (that's 0 milliseconds = infinite delay)
-
Hi, thanks for your help, that´s the solution!!
3 out of 3
Suggested Topics
-
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
NODs stop responding, but ping works.
Troubleshooting • 28 days ago • Marcin 28 days ago -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting • 26 Feb 2025, 00:32 • dpcons 26 Feb 2025, 06:22 -
Raspberry Pi 5: invalid GPIO 9
Troubleshooting • 27 Aug 2024, 13:20 • igo 27 Aug 2024, 13:20 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting • 17 days ago • bocalexandru 15 days ago -
Forum Search not working?
Troubleshooting • 4 Oct 2023, 23:33 • Gibber 2 Sept 2024, 20:28