Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Oct 11, 2020
1 parent 4343171 commit 2cb38bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ads7924/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ where

ads7924.reset(delay)?;

// Bring the ADC from idle to awake mode unconditionally.
// Bring the ADC from idle to awake mode unconditionally.
let mode_control = *0u8.set_bits(2..8, OperationMode::Active as u8);
ads7924.write(Register::ModeCntrl, &[mode_control])?;

Expand Down Expand Up @@ -296,7 +296,8 @@ where
Register::Data0Upper,
Register::Data1Upper,
Register::Data2Upper,
Register::Data3Upper];
Register::Data3Upper,
];

// First, disable Autoscan mode.
self.set_mode(OperationMode::Active, None)?;
Expand All @@ -317,5 +318,4 @@ where

Ok(voltages)
}

}

0 comments on commit 2cb38bc

Please sign in to comment.