Skip to content

Commit

Permalink
[tests] Fix i2c_target_smbus_arp_test
Browse files Browse the repository at this point in the history
The compiler is not happy about a missing case for kDtI2cIrqCount
which is obviously invalid. Add a default to please the compiler.

Signed-off-by: Amaury Pouly <[email protected]>
  • Loading branch information
pamaury committed Sep 5, 2024
1 parent 0a9defb commit 8cc0b87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sw/device/tests/i2c_target_smbus_arp_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ void i2c_isr(dif_i2c_irq_t irq) {
case kDifI2cIrqAcqStretch:
i2c_event = true;
break;
default:
CHECK(false, "invalid interrupt %d", irq);
}
dif_i2c_irq_enable_snapshot_t enables;
CHECK_DIF_OK(dif_i2c_irq_disable_all(&i2c, &enables));
Expand Down

0 comments on commit 8cc0b87

Please sign in to comment.