Automated analysis found:
Warning: line 119, column 11 in file piolib.c
Access to field 'chip' results in a dereference of a null pointer (loaded from variable 'pio')
Unsure if this is a real issue.
@pelwell thanks for recent fixes.

If you'd like to see the generated interactive HTML report, mention me and I will publish it.