Skip to content

Commit 354af99

Browse files
kalkyljamesmunns
authored andcommitted
Cleanup internal naming
1 parent a44379a commit 354af99

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

nrf-hal-common/src/spis.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ where
182182

183183
/// Enables interrupt for specified event.
184184
#[inline(always)]
185-
pub fn enable_interrupt(&self, command: SpisEvent) -> &Self {
186-
self.spis.intenset.modify(|_r, w| match command {
185+
pub fn enable_interrupt(&self, event: SpisEvent) -> &Self {
186+
self.spis.intenset.modify(|_r, w| match event {
187187
SpisEvent::Acquired => w.acquired().set_bit(),
188188
SpisEvent::End => w.end().set_bit(),
189189
SpisEvent::EndRx => w.endrx().set_bit(),
@@ -193,8 +193,8 @@ where
193193

194194
/// Disables interrupt for specified event.
195195
#[inline(always)]
196-
pub fn disable_interrupt(&self, command: SpisEvent) -> &Self {
197-
self.spis.intenclr.write(|w| match command {
196+
pub fn disable_interrupt(&self, event: SpisEvent) -> &Self {
197+
self.spis.intenclr.write(|w| match event {
198198
SpisEvent::Acquired => w.acquired().set_bit(),
199199
SpisEvent::End => w.end().set_bit(),
200200
SpisEvent::EndRx => w.endrx().set_bit(),

0 commit comments

Comments
 (0)