mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[hal] Add systemcore battery reading (#7995)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user