Oddělení informace o licenci

This commit is contained in:
2024-04-12 12:15:37 +02:00
parent 2b7a68e64a
commit 671a764b04
8 changed files with 38 additions and 27 deletions

View File

@@ -24,13 +24,12 @@ const string cidFilePath = "";
struct SDCardInfo
{
uint32_t cardSize {};
uint32_t serialNumber {};
string date = "";
string oemID = "";
string name = "";
string licenceFileName = "";
bool isLoaded = false;
uint32_t cardSize{};
uint32_t serialNumber{};
string date = "";
string oemID = "";
string name = "";
bool isLoaded = false;
};
class SDCard
@@ -59,25 +58,22 @@ class SDCard
bool crcCorrect = false;
};
bool readSDCard();
bool getCIDFromFile();
bool getCSDFromFile();
bool readSDCard();
bool getCIDFromFile();
bool getCSDFromFile();
public:
SDCardData cardData;
bool isLoaded = false;
char cid[32] = {};
char csd[32] = {};
string filePath = "";
string cidString = ""; //pro předání pro starý generátor
string csdString = ""; //pro předání pro starý generátor
string cidString = ""; // pro předání pro starý generátor
string csdString = ""; // pro předání pro starý generátor
SDCard();
SDCard(string cid, string csd);
SDCard(const string filesPath);
};
#endif