Add 0x prefix to some more fields on UDS Scanner Window. Fix ability to use 4 subfunction bytes

This commit is contained in:
Collin Kidder
2017-12-14 18:42:40 -05:00
parent f4474badc5
commit f7f9096a72
2 changed files with 13 additions and 1 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ void UDSScanWindow::readByToggled()
void UDSScanWindow::numBytesChanged()
{
uint64_t upperBound = (1 << (8 * ui->spinNumBytes->value())) - 1;
uint64_t upperBound = (1ull << (8ull * ui->spinNumBytes->value())) - 1;
if (upperBound > 0x7FFFFFFF) upperBound = 0x7FFFFFFF;
ui->spinUpperSubfunc->setMaximum(upperBound);
}
+12
View File
@@ -260,6 +260,9 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="prefix">
<string>0x</string>
</property>
<property name="maximum">
<number>255</number>
</property>
@@ -280,6 +283,9 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="prefix">
<string>0x</string>
</property>
<property name="maximum">
<number>255</number>
</property>
@@ -330,6 +336,9 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="prefix">
<string>0x</string>
</property>
<property name="maximum">
<number>255</number>
</property>
@@ -350,6 +359,9 @@
<property name="enabled">
<bool>false</bool>
</property>
<property name="prefix">
<string>0x</string>
</property>
<property name="maximum">
<number>255</number>
</property>