toolset progress

only:alphax-4chan
This commit is contained in:
rusefi 2023-03-15 23:11:31 -04:00
parent 62e12354c3
commit 3b25c864f8
3 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -100,7 +100,7 @@ public class PinoutLogicIntegratedTest {
state.getEnumsReader().read(new StringReader("enum class Gpio : uint16_t {\n" +
"Unassigned = 0,\n" +
"Invalid = 1,\n" +
"Invalid = 0x01,\n" +
"E11 = 2,\n" +
"};"));

View File

@ -29,6 +29,8 @@ public class Value implements Comparable<Value> {
}
public int getIntValue() {
if (value.toLowerCase().startsWith("0x"))
return Integer.parseInt(value.substring(2), 16);
return Integer.parseInt(value);
}