mirror of https://github.com/lcpz/lain.git
Merge pull request #224 from ikselven/master
fix: attempt to index a nil value (field 'n_perc')
This commit is contained in:
commit
1129e88960
|
@ -62,6 +62,7 @@ local function worker(args)
|
|||
}
|
||||
|
||||
bat_now.n_status = {}
|
||||
bat_now.n_perc = {}
|
||||
for i = 1, #batteries do
|
||||
bat_now.n_status[i] = "N/A"
|
||||
bat_now.n_perc[i] = 0
|
||||
|
|
Loading…
Reference in New Issue