diff --git a/cc3200/mods/pybsleep.c b/cc3200/mods/pybsleep.c
index 9b239bb71319fef9f7fe570f64f755f5087df599..af16cc512ca52a2c21bc84d218c5d8207071baf3 100644
--- a/cc3200/mods/pybsleep.c
+++ b/cc3200/mods/pybsleep.c
@@ -398,8 +398,10 @@ void pybsleep_suspend_exit (void) {
     // ungate the clock to the shared spi bus
     MAP_PRCMPeripheralClkEnable(PRCM_SSPI, PRCM_RUN_MODE_CLK | PRCM_SLP_MODE_CLK);
 
+#if MICROPY_HW_ANTENNA_DIVERSITY
     // re-configure the antenna selection pins
     antenna_init0();
+#endif
 
     // reinitialize simplelink's interface
     sl_IfOpen (NULL, 0);