Typehash refactoring

This commit is contained in:
Alexandre Paillier
2022-04-26 15:08:59 +02:00
parent a3f5eee116
commit 149e20cd11
2 changed files with 35 additions and 39 deletions

View File

@@ -381,9 +381,9 @@ bool handle_apdu(const uint8_t *const data)
switch (data[OFFSET_P2])
{
case P2_NAME:
type_hash(structs_array, (char*)&data[OFFSET_DATA], data[OFFSET_LC]);
// set root type
path_set_root((char*)&data[OFFSET_DATA], data[OFFSET_LC]);
type_hash(structs_array, (char*)&data[OFFSET_DATA], data[OFFSET_LC]);
break;
case P2_FIELD:
if ((data[OFFSET_P1] != P1_COMPLETE) && (data[OFFSET_P1] != P1_PARTIAL))