From f94a12606158cc41f1a4c596c1b03785a456e457 Mon Sep 17 00:00:00 2001 From: "rmackay9@yahoo.com" Date: Sun, 12 Dec 2010 13:06:34 +0000 Subject: [PATCH] CLI - small formatting difference when printing SENSOR values from Log to serial port git-svn-id: https://arducopter.googlecode.com/svn/trunk@1111 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArducopterNG/Log.pde | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/ArducopterNG/Log.pde b/ArducopterNG/Log.pde index 95eee846cf..e808137d33 100644 --- a/ArducopterNG/Log.pde +++ b/ArducopterNG/Log.pde @@ -375,17 +375,16 @@ void Log_Read_Attitude() // Read a Sensor packet void Log_Read_Sensor() -{ - int i, sensorValue; - +{ SerPri("SENSOR:"); - for(int i=0; i<7; i++ ) - { - if( i!=0 ) - SerPri(","); - sensorValue = DataFlash.ReadInt(); - SerPri(sensorValue); - } + SerPri(DataFlash.ReadInt()); SerPri(","); + SerPri(DataFlash.ReadInt()); SerPri(","); + SerPri(DataFlash.ReadInt()); SerPri(","); + SerPri(DataFlash.ReadInt()); SerPri(","); + SerPri(DataFlash.ReadInt()); SerPri(","); + SerPri(DataFlash.ReadInt()); SerPri(","); + SerPri(DataFlash.ReadInt()); + SerPriln(); } // Read a Sensor raw data packet