luci-mod-battstatus: get RavPower RP-WD009 working again

luci-mod-battstatus: Restore support for RavPower RP-WD009

Restore support for RavPower RP-WD009 devices

Prior to commit d42dce3, this script used to work for providing battery status on RavPower RP-WD009 devices.
    
This change restores functionality for this device.


Signed-off-by: Jinnah Dylan Hosein <jdh@jdh.wtf>
This commit is contained in:
Jinnah Dylan Hosein
2026-03-26 15:24:40 -07:00
committed by Paul Donald
parent 773c8e5889
commit 3e58d881f2

View File

@@ -16,7 +16,7 @@ case "$1" in
json_add_object "$model"
case "$board" in
hootoo,ht-tm05)
hootoo,ht-tm05|ravpower,rp-wd009)
if [ -f /usr/sbin/i2cset ] && [ -f /usr/sbin/i2cget ]; then
json_add_boolean valid 1
if [ $(i2cset -y 0 0x0a 0x0a 0x01 && i2cget -y 0 0x0a 0x0a) = 0x40 ]; then