Skip to content

Commit afa79e0

Browse files
committed
fix(bitscrambler): fix bitscrambler RX mode initialization error
1 parent 2189c52 commit afa79e0

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)