From ee1584d6396bdcbe1693622f54b911d307d866ad Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Tue, 7 Jan 2014 21:55:26 +0100 Subject: [PATCH] OP-1122 OP-1145 uavobject toStringBrief now displays the object Id as in hexadecimal format --- ground/openpilotgcs/src/plugins/uavobjects/uavobject.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ground/openpilotgcs/src/plugins/uavobjects/uavobject.cpp b/ground/openpilotgcs/src/plugins/uavobjects/uavobject.cpp index 68295453f..a43f893ef 100644 --- a/ground/openpilotgcs/src/plugins/uavobjects/uavobject.cpp +++ b/ground/openpilotgcs/src/plugins/uavobjects/uavobject.cpp @@ -473,9 +473,10 @@ QString UAVObject::toStringBrief() { QString sout; + // object Id is converted to uppercase hexadecimal sout.append(QString("%1 (ID: %2-%3, %4 bytes, %5)") .arg(getName()) - .arg(getObjID()) + .arg(getObjID(), 1, 16).toUpper() .arg(getInstID()) .arg(getNumBytes()) .arg(isSingleInstance() ? "single" : "multiple"));