@@ -190,7 +190,7 @@ impl fmt::Display for AccelData {
190190 let x = ( self . x as f32 ) / quarter;
191191 let y = ( self . y as f32 ) / quarter;
192192 let z = ( self . z as f32 ) / quarter;
193- write ! ( f, "X: {: .2}G Y: {: .2}G, Z: {: .2}G" , x, y, z)
193+ write ! ( f, "X={:+ .2}G Y={:+ .2}G, Z={:+ .2}G" , x, y, z)
194194 }
195195}
196196
@@ -291,17 +291,17 @@ pub fn print_sensors(ec: &CrosEc) {
291291 let present = ( acc_status & 0x80 ) > 0 ;
292292 if present {
293293 println ! ( "Accelerometers:" ) ;
294- println ! ( " Status Bit: {} 0x{:X}" , acc_status, acc_status) ;
295- println ! ( " Present: {}" , present) ;
296- println ! ( " Busy: {}" , ( acc_status & 0x8 ) > 0 ) ;
297- print ! ( " Lid Angle: " ) ;
294+ debug ! ( " Status Bit: {} 0x{:X}" , acc_status, acc_status) ;
295+ debug ! ( " Present: {}" , present) ;
296+ debug ! ( " Busy: {}" , ( acc_status & 0x8 ) > 0 ) ;
297+ print ! ( " Lid Angle: " ) ;
298298 if lid_angle == LID_ANGLE_UNRELIABLE {
299299 println ! ( "Unreliable" ) ;
300300 } else {
301301 println ! ( "{} Deg" , lid_angle) ;
302302 }
303- println ! ( " Sensor 1: {}" , AccelData :: from( accel_1) ) ;
304- println ! ( " Sensor 2: {}" , AccelData :: from( accel_2) ) ;
303+ println ! ( " Sensor 1: {}" , AccelData :: from( accel_1) ) ;
304+ println ! ( " Sensor 2: {}" , AccelData :: from( accel_2) ) ;
305305 // Accelerometers
306306 // Lid Angle: 26 Deg
307307 // Sensor 1: 00.00 X 00.00 Y 00.00 Z
0 commit comments