Skip to content

Commit

Permalink
Fixed incorrect compare_exchange call.
Browse files Browse the repository at this point in the history
Co-authored-by: Dániel Buga <[email protected]>
  • Loading branch information
Frostie314159 and bugadani authored Nov 14, 2024
1 parent 74dba57 commit 3af4918
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp-hal/src/radio_clock_ctrl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl SharedRadioClockControl {
};
// If the states already match, we return. Otherwise the new state is stored.
if modem_clock_enabled
.compare_exchange(!enabled, !enabled, Ordering::Relaxed, Ordering::Relaxed)
.compare_exchange(!enabled, enabled, Ordering::Relaxed, Ordering::Relaxed)
.is_err()
{
return;
Expand Down

0 comments on commit 3af4918

Please sign in to comment.