mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
replace fixed value
160 can be replaced by CLOCK_SPEED_MHZ
This commit is contained in:
parent
f91b713e49
commit
3bc2904060
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user