@@ -7,8 +7,8 @@ use linux_embedded_hal::I2cdev;
77use tracing:: { warn, debug, error, info, instrument, Level } ;
88use nmea:: { Nmea , SentenceType } ;
99use rppal:: gpio:: Gpio ;
10- use std:: { cell :: RefCell , collections:: VecDeque , sync:: { Arc , mpsc:: { self , Receiver , Sender } } , time:: Duration } ;
11- use tokio:: { join, spawn , sync:: watch, time:: { self , sleep} } ;
10+ use std:: { collections:: VecDeque , sync:: { Arc , mpsc:: { self , Receiver , Sender } } , time:: Duration } ;
11+ use tokio:: { join, sync:: watch, time:: { self , sleep} } ;
1212use serialport:: SerialPort ;
1313use std:: sync:: Mutex ;
1414use bno055:: BNO055PowerMode ;
@@ -79,7 +79,7 @@ async fn sending_loop(mut rfd_send: Box<dyn SerialPort>, info_recv: Receiver<Str
7979 info ! ( "Spawned BMP task" ) ;
8080
8181 // Spawn BNO task
82- let ( bno_send, bno_recv ) = watch:: channel ( None ) ;
82+ let ( bno_send, _bno_recv ) = watch:: channel ( None ) ;
8383 let bnoi2c = Arc :: clone ( & i2c) ;
8484 tokio:: spawn ( async move {
8585 let bnoi2c = MutexDevice :: new ( & * bnoi2c) ;
@@ -322,7 +322,7 @@ async fn bmp_loop(data: watch::Sender<(Option<f64>, Option<f64>)>, i2c: MutexDev
322322}
323323
324324#[ instrument( skip_all) ]
325- async fn bno055_loop ( data : watch:: Sender < Option < ( f64 , f64 ) > > , i2c : MutexDevice < ' _ , I2cdev > ) {
325+ async fn bno055_loop ( _data : watch:: Sender < Option < ( f64 , f64 ) > > , i2c : MutexDevice < ' _ , I2cdev > ) {
326326 let mut bno055 = bno055:: Bno055 :: new ( i2c) ;
327327 let mut delay = linux_embedded_hal:: Delay ;
328328 bno055. set_mode ( bno055:: BNO055OperationMode :: NDOF , & mut delay) . unwrap ( ) ;
0 commit comments