Skip to content
  • 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
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

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

Scheduled Pinned Locked Moved Troubleshooting
3 Posts 2 Posters 935 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.
  • siodS Offline
    siodS 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
    • Nca78N Offline
      Nca78N 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
      • siodS Offline
        siodS Offline
        siod
        wrote on last edited by
        #3

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

        still learning...

        1 Reply Last reply
        2
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        9

        Online

        11.7k

        Users

        11.2k

        Topics

        113.0k

        Posts


        Copyright 2019 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
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular