OpenSprinkler Forums OpenSprinkler Unified Firmware Announcing OpenSprinkler Unified Firmware 2.1.9 Reply To: Announcing OpenSprinkler Unified Firmware 2.1.9

#64477

Ray
Keymaster

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
https://github.com/OpenSprinkler/OpenSprinkler-Firmware/blob/master/defines.h#L27
uncomment that line to enable command line printout. Next, re-compile the firmware by:
./build.sh ospi

finally, run it in command line by:
sudo ./OpenSprinkler
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.