Skip to content

Commit

Permalink
Merge pull request betrusted-io#263 from sorpaas/sp-rename
Browse files Browse the repository at this point in the history
RemoveClockEntry -> TryRemoveClockEntry
  • Loading branch information
xobs authored Oct 29, 2022
2 parents 052817c + 38286d8 commit 2fd685c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion emulation/peripherals/BetrustedEcI2C.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public BetrustedEcI2C(Machine machine) : base(machine)
private void FinishTransaction()
{
// this.Log(LogLevel.Error, "I2C: Removing clock entry for {0}",this.irqTimeoutCallback);
machine.ClockSource.RemoveClockEntry(FinishTransaction);
machine.ClockSource.TryRemoveClockEntry(FinishTransaction);
irqTimeoutCallbackQueued = 0;
if (shouldSendTxRxIrq)
{
Expand Down
2 changes: 1 addition & 1 deletion emulation/peripherals/BetrustedSocI2C.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public BetrustedSocI2C(Machine machine) : base(machine)

private void FinishTransaction()
{
machine.ClockSource.RemoveClockEntry(FinishTransaction);
machine.ClockSource.TryRemoveClockEntry(FinishTransaction);
if (shouldSendTxRxIrq)
{
shouldSendTxRxIrq = false;
Expand Down

0 comments on commit 2fd685c

Please sign in to comment.