OpenSprinkler Forums OpenSprinkler Unified Firmware OpenSprinkler unified firmware compilation error

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #50229

    Joerg
    Participant

    Hello,
    I just tried to compile the new firmware after:
    —————
    ~/OpenSprinklerGen2 $ sudo git pull
    —————

    I received the following error message:
    —————
    ~/OpenSprinklerGen2 $ sudo ./build.sh ospi
    Building OpenSprinkler…
    gpio.cpp: In function ‘void attachInterrupt(int, const char*, void (*)())’:
    gpio.cpp:411:14: error: ‘delay’ was not declared in this scope
    delay(1) ;
    ^
    Done!
    —————-
    What can I do to solve this compileation error?

    Thx in advance.

    Regards,
    xwox

    #50233

    Wokkeltje
    Participant

    same issue

    #50236

    bigredbee
    Participant

    I added this to gpio.cpp, and it compiled without error.
    #include “utils.h”

    But I’m unable to change the default port number — it hangs after I click on “submit”

    Does anyone know the magic git command to revert back to the previous version?

    #50238

    bigredbee
    Participant

    And…I’m not able to change/save any of my configs, or even manually start a zone (which worked with the previous version)

    #50239

    dsmoot
    Participant

    I was just starting to setup my new OSPI, and got the same error. I reverted to the version 5/15/18 and it is at least loading now.
    To revert, run: git checkout <sha1> from the OpenSprinkerGen2 directory. The SHA1 for the 5/15 version is fd7cdada9d89cf6102c731a70157ec66145f643a

    #50241

    bigredbee
    Participant

    Thanks! I’m up and running as well that the fd7cd… version

    #50244

    Wokkeltje
    Participant

    What command I need to un to return to the latest version if this one is fixed?

    git pull is requesting more info now.

    #50247

    dsmoot
    Participant

    To get back to the “latest” version once it’s fixed, you can run:
    git checkout master

    #50250

    Ray
    Keymaster

    The compilation error is fixed, but there is an UI/app related issue that prevents it from changing any option in firmware. See my comment here:
    https://github.com/OpenSprinkler/OpenSprinkler-Firmware/issues/67
    Instructions:
    Using git you can check out that particular version by:
    git checkout fd7cdada9d89cf6102c731a70157ec66145f643a
    then compile the firmware again by
    ./build.sh ospi
    and reboot.

    #50274

    rblond
    Participant

    Hello,

    Yes, the program installs without error, but cannot save any options or irrigation time.

    Robert

    #50312

    Ray
    Keymaster

    @rblond: please clear your browser history, or use a private browsing window, to force the browser to use up-to-date UI files; or update your mobile app if you use mobile app. The current app version is 1.7.7.

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware OpenSprinkler unified firmware compilation error