forked from espressif/esp-idf
fix(bitscrambler): fix bitscrambler RX mode initialization error
This commit is contained in:
@@ -165,7 +165,6 @@ esp_err_t bitscrambler_new(const bitscrambler_config_t *config, bitscrambler_han
|
||||
return ESP_ERR_NOT_FOUND;
|
||||
}
|
||||
|
||||
enable_clocks(bs);
|
||||
// Do initialization of BS object.
|
||||
esp_err_t r = init_from_config(bs, config);
|
||||
if (r != ESP_OK) {
|
||||
@@ -173,6 +172,8 @@ esp_err_t bitscrambler_new(const bitscrambler_config_t *config, bitscrambler_han
|
||||
return r;
|
||||
}
|
||||
|
||||
enable_clocks(bs);
|
||||
|
||||
// Return the handle
|
||||
*handle = bs;
|
||||
return ESP_OK;
|
||||
|
Reference in New Issue
Block a user