Moved ifdef to fix linker bug in mbed online compiler (because it uses pico_config to specify modules)