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)
366366 // Reset tester stats and select I2C
367367 tester.peripherals_reset ();
368368 tester.select_peripheral (MbedTester::PeripheralI2C);
369+ tester.set_next_from_slave (0 );
369370 for (int i = 0 ; i < TRANSFER_COUNT; i++) {
370371 data_in[i] = 0 ;
371372 }
@@ -413,7 +414,7 @@ void i2c_test_byte_read(PinName sda, PinName scl)
413414 TEST_ASSERT_EQUAL (num_nacks, tester.num_nacks ());
414415 TEST_ASSERT_EQUAL (checksum, tester.get_send_checksum ());
415416 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 ());
417418 TEST_ASSERT_EQUAL (num_writes, tester.num_writes ());
418419 TEST_ASSERT_EQUAL (num_reads, tester.num_reads ());
419420
You can’t perform that action at this time.
0 commit comments