Thanks Matthias.
TL;DR: yes, the "periodic inquiry mode" will keep running until certain conditions are met... and those conditions are not related to a fixed time.
Long:
This is part of the Bluepad32 library [1]
It is a library that allows gamepad bluetooth connections. And among other things, it has an Arduino API, so that users can tinker with it.
So, some users might want to keep the "accept bluetooth connections" forever, other might want to stop after certain conditions are met like:
- a user press a button to "disable" bluetooth
- or that after the first gamepad is connected
- etc.
Thanks!