File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
TESTS/mbed_hal_fpga_ci_test_shield/i2c Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -366,6 +366,7 @@ void i2c_test_byte_read(PinName sda, PinName scl)
366
366
// Reset tester stats and select I2C
367
367
tester.peripherals_reset ();
368
368
tester.select_peripheral (MbedTester::PeripheralI2C);
369
+ tester.set_next_from_slave (0 );
369
370
for (int i = 0 ; i < TRANSFER_COUNT; i++) {
370
371
data_in[i] = 0 ;
371
372
}
@@ -413,7 +414,7 @@ void i2c_test_byte_read(PinName sda, PinName scl)
413
414
TEST_ASSERT_EQUAL (num_nacks, tester.num_nacks ());
414
415
TEST_ASSERT_EQUAL (checksum, tester.get_send_checksum ());
415
416
TEST_ASSERT_EQUAL (0 , tester.state_num ());
416
- TEST_ASSERT_EQUAL (((TRANSFER_COUNT + 2 ) & 0xFF ), tester.get_next_from_slave ());
417
+ TEST_ASSERT_EQUAL (((TRANSFER_COUNT) & 0xFF ), tester.get_next_from_slave ());
417
418
TEST_ASSERT_EQUAL (num_writes, tester.num_writes ());
418
419
TEST_ASSERT_EQUAL (num_reads, tester.num_reads ());
419
420
You can’t perform that action at this time.
0 commit comments