If you try to read out the GPIO immediately after setting the weak pull on the pin it is possible that you will not read the correct value on a floating pin. We need to use a busy wait loop instead of the platform_delay because the platform timing is not initialized yet. We also can not initialize the platform_delay code yet because it requires LED gpio to be configured. A busy wait seems to do the job and is easier than refactoring the codebase to use the platform_delay function.
See https://github.com/blacksphere/blackmagic/wiki
Description
Languages
C
95.5%
Python
3%
Makefile
1.3%
Assembly
0.2%