PowerBlock
PowerBlock copied to clipboard
rpi5 updates breaks install for rpi2 & 3
Had this up and running forever, rebuilt a rpi2 and 3 tonight and neither would work (light continuously flashing and switch did nothing. Also noticed that after the install neither pi shutdown.
Noticed changes were made a couple days ago, I ran the uninstall script, rebooted, made the following reversions, re-installed and everything is working fine now.
file /PowerBlock/install.sh
comment line 'updateBootConfig'
file /PowerBlock/scripts/powerblockservice
- change as follows
setPinValue() {
echo $2 > $BASE_GPIO_PATH/gpio$1/value
#- gpioset $chip $1=$2
}
getPinValue() {
echo $(cat $BASE_GPIO_PATH/gpio$1/value)
#- echo $(gpioget $chip $1)
}