Skip to content

Commit

Permalink
ads7924: style
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Oct 9, 2020
1 parent 3821a64 commit 7550bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ads7924/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ where
/// # Returns
/// The analog measurements of all channel in volts.
pub fn get_voltages(&mut self) -> Result<[f32; 4], Error> {
let mut voltages = [0.; 4];
let mut voltages = [0f32; 4];

let upper_data_registers = [
Register::Data0Upper,
Expand Down

0 comments on commit 7550bfb

Please sign in to comment.