forked from qt-creator/qt-creator
Debugger: Fix start/stop bits order in peripheral register field tooltip
Usually this order should be displayed as [to..from] instead of [from..to]. Change-Id: I4a309eedc104b10ac89a48beacb0e187af5c1899 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -167,7 +167,7 @@ QString PeripheralRegisterField::bitRangeString() const
|
||||
{
|
||||
const int from = bitOffset;
|
||||
const int to = bitOffset + bitWidth - 1;
|
||||
return PeripheralRegisterHandler::tr("[%1..%2]").arg(from).arg(to);
|
||||
return PeripheralRegisterHandler::tr("[%1..%2]").arg(to).arg(from);
|
||||
}
|
||||
|
||||
QString PeripheralRegisterField::bitValueString(quint64 regValue) const
|
||||
|
Reference in New Issue
Block a user