replace fixed value

160 can be replaced by CLOCK_SPEED_MHZ
This commit is contained in:
Mark Becker 2018-12-24 13:19:12 +01:00 committed by GitHub
parent f91b713e49
commit 3bc2904060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -294,7 +294,7 @@ void user_uart_init() {
* before user_init() is called.
*/
void user_rf_pre_init() {
system_update_cpu_freq(160);
system_update_cpu_freq(CLOCK_SPEED_MHZ);
// RF calibration: 0=do what byte 114 of esp_init_data_default says, 1=calibrate VDD33 and TX
// power (18ms); 2=calibrate VDD33 only (2ms); 3=full calibration (200ms). The default value of
// byte 114 is 0, which has the same effect as option 2 here. We're using option 3 'cause it's