mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[hal,wpilib] Add support for second I2C port (#7878)
This commit is contained in:
@@ -31,7 +31,7 @@ TEST(I2CSimTest, I2CInitialization) {
|
||||
INDEX_TO_TEST, &TestI2CInitializationCallback, &callbackParam, false);
|
||||
ASSERT_TRUE(0 != callbackId);
|
||||
|
||||
port = HAL_I2C_kMXP;
|
||||
port = HAL_I2C_kPort1;
|
||||
gTestI2CCallbackName = "Unset";
|
||||
HAL_InitializeI2C(port, &status);
|
||||
EXPECT_STREQ("Initialized", gTestI2CCallbackName.c_str());
|
||||
|
||||
Reference in New Issue
Block a user