You can debug this way:
first, you need to stop the process from running in the background, which you can do by following:
sudo /etc/init.d/OpenSprinkler.sh stop
then, in the firmware source file folder, there is a file called “defines.h”, which has a macro define ENABLE_DEBUG
uncomment that line to enable command line printout. Next, re-compile the firmware by:
finally, run it in command line by:
this will run the firmware manually, and it should print out debugging information.
Edit: just realized that after running ./build.sh ospi it might start the process in the background again. So if you encounter any problem running the firmware, you can do sudo /etc/init.d/OpenSprinkler.sh stop again to stop the background process.