OpenSprinkler › Forums › OpenSprinkler Unified Firmware › OpenSprinkler unified firmware compilation error
- This topic has 10 replies, 6 voices, and was last updated 8 years ago by
Ray.
-
AuthorPosts
-
May 26, 2018 at 11:35 am #50229
JoergParticipantHello,
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,
xwoxMay 26, 2018 at 3:47 pm #50233
WokkeltjeParticipantsame issue
May 26, 2018 at 7:39 pm #50236
bigredbeeParticipantI 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?
May 26, 2018 at 10:11 pm #50238
bigredbeeParticipantAnd…I’m not able to change/save any of my configs, or even manually start a zone (which worked with the previous version)
May 26, 2018 at 11:33 pm #50239
dsmootParticipantI 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 fd7cdada9d89cf6102c731a70157ec66145f643aMay 27, 2018 at 12:32 am #50241
bigredbeeParticipantThanks! I’m up and running as well that the fd7cd… version
May 27, 2018 at 2:50 am #50244
WokkeltjeParticipantWhat command I need to un to return to the latest version if this one is fixed?
git pull is requesting more info now.
May 27, 2018 at 1:38 pm #50247
dsmootParticipantTo get back to the “latest” version once it’s fixed, you can run:
git checkout masterMay 27, 2018 at 3:43 pm #50250
RayKeymasterThe 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.May 28, 2018 at 1:15 pm #50274
rblondParticipantHello,
Yes, the program installs without error, but cannot save any options or irrigation time.
Robert
May 30, 2018 at 3:03 pm #50312 -
AuthorPosts
- You must be logged in to reply to this topic.
OpenSprinkler › Forums › OpenSprinkler Unified Firmware › OpenSprinkler unified firmware compilation error