Closed
Description
To make the image fit on non-Express boards, I set -finline-limit=19
. This is too low. It apparently causes some routines to disappear completely with -flto
.
One way to check is to see if deinit checking is working. Here is an example of it not working:
>>> import board,digitalio
>>> d = digitalio.Di
DigitalInOut Direction
>>> d = digitalio.DigitalInOut(board.D2)
>>> d.value
False
>>> d.deinit()
>>> d.value
False
The second d.value
should throw an exception saying the value can no longer be used.
If we push -finline-limit
up, the non-express board images may no longer fit. We'll have to figure out a different way of saving space.