Skip to content

Comments

fix for libreelec 12.0.2#27

Open
dawez wants to merge 1 commit intoMilhouseVH:masterfrom
dawez:patch-1
Open

fix for libreelec 12.0.2#27
dawez wants to merge 1 commit intoMilhouseVH:masterfrom
dawez:patch-1

Conversation

@dawez
Copy link

@dawez dawez commented Mar 30, 2025

After the update to libreelec 12.0.2. I was getting an error on start:

Traceback (most recent call last):
  File "/usr/bin/bcmstat.sh", line 1708, in <module>
    main(sys.argv[1:])
  File "/usr/bin/bcmstat.sh", line 1565, in main
    sysinfo = getsysinfo(HARDWARE)
              ^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/bcmstat.sh", line 770, in getsysinfo
    VCG_INT = vcgencmd_items("get_config int", isInt=True)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/bcmstat.sh", line 375, in vcgencmd_items
    elif l[1][:2] == "0x":
         ~^^^
IndexError: list index out of range

This PR fixes the issue so the script is runnable again. It looks that the values are displayed as before. A bit more debug shown that the case where l has length less than 2 are:

['ioctl_set_msg failed:-1']
['get_config int']
['ioctl_set_msg failed:-1']
['get_config int']

This is on an Rpi3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant