Merge pull request #263 from sorpaas/sp-rename

RemoveClockEntry -> TryRemoveClockEntry
This commit is contained in:
Sean Cross 2022-10-29 04:52:48 -04:00 committed by GitHub
commit 2fd685c513
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -171,7 +171,7 @@ namespace Antmicro.Renode.Peripherals.I2C.Betrusted
private void FinishTransaction() private void FinishTransaction()
{ {
// this.Log(LogLevel.Error, "I2C: Removing clock entry for {0}",this.irqTimeoutCallback); // this.Log(LogLevel.Error, "I2C: Removing clock entry for {0}",this.irqTimeoutCallback);
machine.ClockSource.RemoveClockEntry(FinishTransaction); machine.ClockSource.TryRemoveClockEntry(FinishTransaction);
irqTimeoutCallbackQueued = 0; irqTimeoutCallbackQueued = 0;
if (shouldSendTxRxIrq) if (shouldSendTxRxIrq)
{ {

View file

@ -162,7 +162,7 @@ namespace Antmicro.Renode.Peripherals.I2C.Betrusted
private void FinishTransaction() private void FinishTransaction()
{ {
machine.ClockSource.RemoveClockEntry(FinishTransaction); machine.ClockSource.TryRemoveClockEntry(FinishTransaction);
if (shouldSendTxRxIrq) if (shouldSendTxRxIrq)
{ {
shouldSendTxRxIrq = false; shouldSendTxRxIrq = false;