IRNAS / pira-smart-firmware

Firmware for PiRa Smart device
GNU General Public License v3.0
0 stars 1 forks source link

Add timeout on RPi wait for boot #11

Open SloMusti opened 6 years ago

SloMusti commented 6 years ago

Add a timeout for RPi to boot, best is that on-time timer starts working immediately when the pin is set to high. If it fails to boot, then shutdown occurs after the on period expires.

https://github.com/IRNAS/pira-smart-firmware/blob/develop/src/RaspberryPiControl.cpp#L39

gorankecman commented 6 years ago

Test it with hex I have provided to you.

Branch: develop SHA1: 76ddc7f0a7295a9fe3ad6b4b951b8a4ab2881eaf