Skip to content

Commit a8128ad

Browse files
committed
Merge branch 'bugfix/fix_bitscrambler_rx_mode_init_error' into 'master'
fix(bitscrambler): fix bitscrambler RX mode initialization error Closes IDF-13082 See merge request espressif/esp-idf!39154
2 parents 4911efc + afa79e0 commit a8128ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/esp_driver_bitscrambler/src/bitscrambler.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,15 @@ esp_err_t bitscrambler_new(const bitscrambler_config_t *config, bitscrambler_han
165165
return ESP_ERR_NOT_FOUND;
166166
}
167167

168-
enable_clocks(bs);
169168
// Do initialization of BS object.
170169
esp_err_t r = init_from_config(bs, config);
171170
if (r != ESP_OK) {
172171
bitscrambler_free(bs);
173172
return r;
174173
}
175174

175+
enable_clocks(bs);
176+
176177
// Return the handle
177178
*handle = bs;
178179
return ESP_OK;

0 commit comments

Comments
 (0)