File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " sensehat"
3- version = " 0.2.1 "
3+ version = " 0.3.0 "
44authors = [
" Jonathan Pallant <[email protected] >" ]
55license-file = " LICENSE.md"
66documentation = " https://docs.rs/crate/sensehat"
@@ -10,7 +10,7 @@ description = "Interface with the Raspberry Pi Foundation's official Sense Hat s
1010readme = " README.md"
1111
1212[dependencies ]
13- measurements = " 0.4 .0"
13+ measurements = " 0.7 .0"
1414i2cdev = " 0.3.1"
1515byteorder = " 1.0.0"
1616libc = { version = " 0.2.0" , optional = true }
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ extern crate gcc;
22
33#[ cfg( feature = "rtimu" ) ]
44fn main ( ) {
5- gcc:: Config :: new ( )
5+ gcc:: Build :: new ( )
66 . cpp ( true ) // Switch to C++ library compilation.
77 . file ( "src/rtimulib_wrapper.cc" )
88 . compile ( "librtimulib_wrapper.a" ) ;
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ mod tests {
248248 #[ test]
249249 pub fn pressure_test ( ) {
250250 let p = Pressure :: from_hectopascals ( 1000.0 ) ;
251- assert_eq ! ( p. as_bars( ) , 1.0 ) ;
252- assert_eq ! ( p. as_psi( ) , 14.5038 ) ;
251+ assert ! ( ( p. as_bars( ) - 1.0 ) . abs ( ) < 1e-6 ) ;
252+ assert ! ( ( p. as_psi( ) - 14.50376807894691 ) . abs ( ) < 1e-6 ) ;
253253 }
254254}
You can’t perform that action at this time.
0 commit comments