From 8b8a14759b7488534634906075cc0c4b912563db Mon Sep 17 00:00:00 2001 From: Davide Zipeto Date: Sun, 30 Mar 2025 20:05:05 +0200 Subject: [PATCH] fix for libreelec 12.0.2 --- bcmstat.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bcmstat.sh b/bcmstat.sh index 9093879..0ae8a88 100755 --- a/bcmstat.sh +++ b/bcmstat.sh @@ -369,6 +369,8 @@ def vcgencmd(args, split=True): def vcgencmd_items(args, isInt=False): d = {} for l in [x.split("=") for x in vcgencmd(args, split=False).split("\n")]: + if len(l) < 2: + continue if not isInt: d[l[0]] = l[1] elif l[1][:2] == "0x":