Refactor type hash function to use less RAM

This commit is contained in:
Alexandre Paillier
2022-05-02 15:30:41 +02:00
parent 854791324a
commit 83dda443f4
5 changed files with 301 additions and 348 deletions

View File

@@ -381,7 +381,7 @@ 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]);
type_hash(structs_array, (char*)&data[OFFSET_DATA], data[OFFSET_LC], true);
// set root type
path_set_root((char*)&data[OFFSET_DATA], data[OFFSET_LC]);
break;