09-07-2019, 12:55 PM
(09-07-2019, 11:52 AM)TheOldPresbyope Wrote: At a guess, the sysinfo testing takes longer because it now has to fire off a Python process to get the version of the new RPi.GPIO script.
Regards,
Kent
Correct. I'm using the command below to fetch the version. It can take up to 15 secs depending on system speed.
Code:
RPI_GPIO_VER=$(pip3 show RPi-GPIO | grep Version | awk '{ print $2 }')
It can be replaced with the code below and then it's instantaneous :-)
Code:
RPI_GPIO_VER=$(grep -iRl "RPi.GPIO-" /usr/local/lib/python3.7/dist-packages/ | awk -F "." '{print $3 "." $4 "." $5}' | cut -f 2 -d "-")
I'll plan to release a patch update: 6.2.1 to get this and any other fixes out.
-Tim