@@ -190,7 +190,7 @@ impl fmt::Display for AccelData {
190
190
let x = ( self . x as f32 ) / quarter;
191
191
let y = ( self . y as f32 ) / quarter;
192
192
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)
194
194
}
195
195
}
196
196
@@ -291,17 +291,17 @@ pub fn print_sensors(ec: &CrosEc) {
291
291
let present = ( acc_status & 0x80 ) > 0 ;
292
292
if present {
293
293
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: " ) ;
298
298
if lid_angle == LID_ANGLE_UNRELIABLE {
299
299
println ! ( "Unreliable" ) ;
300
300
} else {
301
301
println ! ( "{} Deg" , lid_angle) ;
302
302
}
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) ) ;
305
305
// Accelerometers
306
306
// Lid Angle: 26 Deg
307
307
// Sensor 1: 00.00 X 00.00 Y 00.00 Z
0 commit comments