mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[hal] Replace hardcoded sim array sizes with constants (#4015)
This commit is contained in:
@@ -9,7 +9,7 @@ using namespace hal;
|
||||
|
||||
namespace hal::init {
|
||||
void InitializeI2CData() {
|
||||
static I2CData sid[2];
|
||||
static I2CData sid[kI2CPorts];
|
||||
::hal::SimI2CData = sid;
|
||||
}
|
||||
} // namespace hal::init
|
||||
|
||||
Reference in New Issue
Block a user