fix(bitscrambler): fix bitscrambler RX mode initialization error

This commit is contained in:
Dong Heng
2025-05-15 11:37:50 +08:00
committed by morris
parent f8cdf02b55
commit d35923141d

View File

@@ -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;