mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Makes CAN API initializer setup HAL (#1084)
This commit is contained in:
committed by
Peter Johnson
parent
fb45a5b314
commit
c4728d291e
@@ -16,6 +16,7 @@
|
||||
#include "HAL/Errors.h"
|
||||
#include "HAL/HAL.h"
|
||||
#include "HAL/handles/UnlimitedHandleResource.h"
|
||||
#include "HALInitializer.h"
|
||||
|
||||
using namespace hal;
|
||||
|
||||
@@ -87,6 +88,7 @@ static int32_t CreateCANId(CANStorage* storage, int32_t apiId) {
|
||||
HAL_CANHandle HAL_InitializeCAN(HAL_CANManufacturer manufacturer,
|
||||
int32_t deviceId, HAL_CANDeviceType deviceType,
|
||||
int32_t* status) {
|
||||
hal::init::CheckInit();
|
||||
CheckDeltaTime();
|
||||
auto can = std::make_shared<CANStorage>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user