Identify slot used by module

Is there a way to identify in code what slot is being used by a module? For example, if I have a 12500 in slot A of a 19007 then I need to use IO1 for PPS, but if I put it in slot D, then I need IO5. I’d like to have the firmware work irregardless of the hardware configuration. Thanks!

Welcome to RAK forum @dwcolo .

There is no way to automatically identify on which port it is connected. There might be some work around like manually checking the pin on the code itself. For example checking signal first on IO1 to see if it is mounted on Slot A. Then if nothing is present then proceed checking IO5 for Slot D.