fix: attempt to index a nil value (field 'n_perc')
This commit is contained in:
parent
806182a0e8
commit
10cb9a9127
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ local function worker(args)
|
||||||
}
|
}
|
||||||
|
|
||||||
bat_now.n_status = {}
|
bat_now.n_status = {}
|
||||||
|
bat_now.n_perc = {}
|
||||||
for i = 1, #batteries do
|
for i = 1, #batteries do
|
||||||
bat_now.n_status[i] = "N/A"
|
bat_now.n_status[i] = "N/A"
|
||||||
bat_now.n_perc[i] = 0
|
bat_now.n_perc[i] = 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue