@@ -291,7 +291,7 @@ int main(int argc, char** argv)
291291 assert (flashAppJSON[" blocks" ].size () == 78 );
292292 assert (flashAppJSON[" blocks" ][0 ][" address" ] == " 0000" );
293293 assert (flashAppJSON[" blocks" ][0 ][" blockType" ] == " 02" );
294- assert (flashAppJSON[" blocks" ][0 ][" dataHex " ] == " 0000" );
294+ assert (flashAppJSON[" blocks" ][0 ][" rawDataHex " ] == " 0000" );
295295
296296 TIFlashFile flashAppCE = TIFlashFile::loadFromFile (" testData/SmartPad.8ek" );
297297 const json flashAppCEJSON = json::parse (flashAppCE.getReadableContent ());
@@ -342,9 +342,9 @@ int main(int argc, char** argv)
342342 "productId": 10,
343343 "hasChecksum": true,
344344 "blocks": [
345- {"address": "0000", "blockType": "02", "dataHex ": "0000"},
346- {"address": "4000", "blockType": "00", "dataHex ": "01020304"},
347- {"address": "0000", "blockType": "01", "dataHex ": ""}
345+ {"address": "0000", "blockType": "02", "rawDataHex ": "0000"},
346+ {"address": "4000", "blockType": "00", "rawDataHex ": "01020304"},
347+ {"address": "0000", "blockType": "01", "rawDataHex ": ""}
348348 ]
349349})" );
350350 multiFlash.addHeader (TIVarType{" OperatingSystem" }, " BASE" , TIModel{" 84+CE" }, true );
@@ -358,7 +358,7 @@ int main(int argc, char** argv)
358358 "devices": [{"deviceType": 115, "typeId": 35}],
359359 "productId": 19,
360360 "hasChecksum": true,
361- "calcDataHex ": "01020304A0"
361+ "rawDataHex ": "01020304A0"
362362})" , 1 );
363363 const std::string multiFlashPath = multiFlash.saveToFile (" /tmp/tivars_lib_cpp_multi_flash.8ek" );
364364 TIFlashFile reloadedMultiFlash = TIFlashFile::loadFromFile (multiFlashPath);
@@ -1789,7 +1789,7 @@ End)";
17891789 "unknownWord": 4660,
17901790 "unknownAfterWordHex": "BB",
17911791 "nameOffsetUnits": 3,
1792- "dataHex ": "01020304"
1792+ "rawDataHex ": "01020304"
17931793})" );
17941794 const json cabriFileJSON = json::parse (cabriFile.getReadableContent ());
17951795 assert (cabriFileJSON[" typeName" ] == " CabriJrAppVar" );
@@ -1801,7 +1801,7 @@ End)";
18011801 assert (cabriFileJSON[" unknownAfterWordHex" ] == " BB" );
18021802 assert (cabriFileJSON[" nameOffsetUnits" ] == 3 );
18031803 assert (cabriFileJSON[" nameOffset" ] == 63 );
1804- assert (cabriFileJSON[" dataHex " ] == " 01020304" );
1804+ assert (cabriFileJSON[" rawDataHex " ] == " 01020304" );
18051805
18061806 TIVarFile genericCabriFile = TIVarFile::createNew (" AppVar" , " GCBF" , " 83PCE" );
18071807 genericCabriFile.setContentFromString (cabriFile.getReadableContent ());
0 commit comments