This commit is contained in:
Georges Palauqui 2024-06-06 17:34:39 +02:00
parent 771210e8f1
commit 271d091b03
No known key found for this signature in database
GPG Key ID: 1E45F544CE4D04A5
2 changed files with 1 additions and 1 deletions

View File

@ -82,6 +82,7 @@ static void _init_system(GlobalState * global_state, SystemModule * module)
ESP_ERROR_CHECK(i2c_master_init());
ESP_LOGI(TAG, "I2C initialized successfully");
// Initialize the core voltage regulator
VCORE_init(global_state);
VCORE_set_voltage(nvs_config_get_u16(NVS_CONFIG_ASIC_VOLTAGE, CONFIG_ASIC_VOLTAGE) / 1000.0, global_state);

View File

@ -34,7 +34,6 @@ static float _fbound(float value, float lower_bound, float upper_bound)
void POWER_MANAGEMENT_task(void * pvParameters)
{
GlobalState * GLOBAL_STATE = (GlobalState *) pvParameters;
PowerManagementModule * power_management = &GLOBAL_STATE->POWER_MANAGEMENT_MODULE;