Allow set_transceiver_mode(OFF) to fall through the rest of the function, now that sgpio_configure() is expecting OFF as a value.

This commit is contained in:
Jared Boone
2013-09-17 15:33:07 -07:00
parent 52dda32a18
commit 53415a620d

View File

@ -189,7 +189,6 @@ void set_transceiver_mode(const transceiver_mode_t new_transceiver_mode) {
gpio_clear(PORT_LED1_3, PIN_LED2); gpio_clear(PORT_LED1_3, PIN_LED2);
gpio_clear(PORT_LED1_3, PIN_LED3); gpio_clear(PORT_LED1_3, PIN_LED3);
rf_path_set_direction(RF_PATH_DIRECTION_OFF); rf_path_set_direction(RF_PATH_DIRECTION_OFF);
return;
} }
sgpio_configure(transceiver_mode, true); sgpio_configure(transceiver_mode, true);