This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Disable PA/LNA after Connection

I use a PA/LNA dur9ing advertising but would like to disable it during connection.  I use the sd_ble_opt_set API which works fine to enable GPIO toggling.  However to disable after a connection I used the code recommended in this post https://devzone.nordicsemi.com/f/nordic-q-a/51330/disable-softdevice-control-of-the-pa-lna-control-lines-and-returning-to-gpios   however the sd_ble_opt_set  always returns NRF_ERROR_INVALID_STATE.  I tried moving the call to main context, after an app_timer timeout.  But it always seems to return invalid.  Is there a better way to enable/disable the PA/LNA?

Parents Reply Children
Related