[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.


  • Hardware Contributor

    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!!


Log in to reply
 

Suggested Topics

  • 7
  • 2
  • 4
  • 9
  • 4
  • 9
  • 23
  • 4

140
Online

9.8k
Users

10.3k
Topics

106.7k
Posts