Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. [SOLVED] call of overloaded 'sleep(int, int)' is ambiguous

[SOLVED] call of overloaded 'sleep(int, int)' is ambiguous

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 1.3k Views 2 Watching
  • 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.
  • S Offline
    S Offline
    siod
    wrote on last edited by Yveaux
    #1

    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.

    still learning...

    1 Reply Last reply
    0
    • N Offline
      N Offline
      Nca78
      Hardware Contributor
      wrote on last edited by
      #2

      I think you need to add ,0 in your parameters (that's 0 milliseconds = infinite delay)

      1 Reply Last reply
      2
      • S Offline
        S Offline
        siod
        wrote on last edited by
        #3

        Hi, thanks for your help, that´s the solution!!

        still learning...

        1 Reply Last reply
        2

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        17

        Online

        12.0k

        Users

        11.2k

        Topics

        113.4k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular