Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,17 @@ export default {
}
}
}
this.rawValue = values[0][0]
if (
this.details.data_type.includes('INT') &&
!this.details.array_size
) {
// For INT and UINT display both dec and hex
this.rawValue = `${values[0][0]} (0x${values[0][0]
.toString(16)
.toUpperCase()})`
} else {
this.rawValue = values[0][0]
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted hex to be in addition to the decimal display, not replace it.

Copy link
Member Author

@jmthomas jmthomas Sep 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like 0xA (10) or 10 (0xA)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That or a separate line. Either would be fine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Of those: 10 (0xA)

this.convertedValue = values[1][0]
this.formattedValue = values[2][0]
this.unitsValue = values[3][0]
Expand Down