LED timer trigger is disabled if you overwrite delay_on with the current value.

root@openwrt:/sys/devices/platform/leds-gpio/leds/d-link:blue:wps#
echo timer > trigger   #STARTS BLINKING
root@openwrt:/sys/devices/platform/leds-gpio/leds/d-link:blue:wps#
echo 200 > delay_on #blinks with a shorter time
root@openwrt:/sys/devices/platform/leds-gpio/leds/d-link:blue:wps#
echo 100 > delay_on #blinks with a shorter time
root@openwrt:/sys/devices/platform/leds-gpio/leds/d-link:blue:wps#
echo 500 > delay_on #blinks with a longer time
root@openwrt:/sys/devices/platform/leds-gpio/leds/d-link:blue:wps#
echo 500 > delay_on #STOPS BLINKING
root@openwrt:/sys/devices/platform/leds-gpio/leds/d-link:blue:wps# cat trigger
none switch0 default-on [timer] phy0rx phy0tx phy0assoc phy0radio
phy0tpt phy1rx phy1tx phy1assoc phy1radio phy1tpt netdev usbdev
root@openwrt:/sys/devices/platform/leds-gpio/leds/d-link:blue:wps# cat delay_on
500

root@openwrt:/sys/devices/platform/leds-gpio/leds/d-link:blue:wps#
echo timer > trigger    #STARTS BLINKING
root@openwrt:/sys/devices/platform/leds-gpio/leds/d-link:blue:wps#
echo 500 > delay_on  #STOPS BLINKING, in this case it had the default
500 value

Nuno
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to