mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-08-07 05:52:41 -04:00
Added RNode battery info to rnstatus output
This commit is contained in:
parent
560c8e164c
commit
b5bde99322
2 changed files with 14 additions and 0 deletions
|
@ -1319,6 +1319,13 @@ class Reticulum:
|
|||
if hasattr(interface, "r_channel_load_long"):
|
||||
ifstats["channel_load_long"] = interface.r_channel_load_long
|
||||
|
||||
if hasattr(interface, "r_battery_state"):
|
||||
if interface.r_battery_state != 0x00:
|
||||
ifstats["battery_state"] = interface.r_battery_state
|
||||
|
||||
if hasattr(interface, "r_battery_percent"):
|
||||
ifstats["battery_percent"] = interface.r_battery_percent
|
||||
|
||||
if hasattr(interface, "bitrate"):
|
||||
if interface.bitrate != None:
|
||||
ifstats["bitrate"] = interface.bitrate
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue