[hal] Add systemcore battery reading (#7995)

This commit is contained in:
Thad House
2025-05-31 10:53:11 -07:00
committed by GitHub
parent 1991af34a5
commit d3fbebc0a9
2 changed files with 28 additions and 5 deletions

View File

@@ -293,6 +293,9 @@ HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode) {
return true;
}
// Initialize system server first, other things might use it
hal::InitializeSystemServer();
hal::init::InitializeHAL();
hal::init::HAL_IsInitialized.store(true);
@@ -307,8 +310,6 @@ HAL_Bool HAL_Initialize(int32_t timeout, int32_t mode) {
return false;
}
hal::InitializeSystemServer();
// // Return false if program failed to kill an existing program
// if (!killExistingProgram(timeout, mode)) {
// return false;