[hal,wpilib] Add support for second I2C port (#7878)

This commit is contained in:
Thad House
2025-04-28 08:29:01 -07:00
committed by GitHub
parent 85a8fc9943
commit 08297430b5
9 changed files with 54 additions and 43 deletions

View File

@@ -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());