parent
62e12354c3
commit
3b25c864f8
Binary file not shown.
|
@ -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" +
|
||||
"};"));
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue